bugfix [#24050] Frame Rate buttons look strange

This commit is contained in:
2010-09-29 07:55:13 +00:00
parent 33fab0f7d7
commit 0fa4ba175f

View File

@@ -2263,8 +2263,13 @@ static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)
flag |= UI_BUT_ALIGN_LEFT;
if( (flag & UI_BUT_ALIGN_TOP)==0) { /* stil top row */
if(prev)
flag= UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT;
if(prev) {
if(next && buts_are_horiz(next, but))
flag = UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT;
else {
flag = UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT|UI_BUT_ALIGN_RIGHT;
}
}
else
flag |= UI_BUT_ALIGN_DOWN;
}