- fixed bug in aligning different sized panels vertically

This commit is contained in:
2003-10-10 21:14:49 +00:00
parent c536fe934f
commit c957bba8ab

View File

@@ -6532,7 +6532,7 @@ int uiAlignPanelStep(ScrArea *sa, float fac)
if(sbuts->align==BUT_VERTICAL) {
psnext->pa->ofsx = ps->pa->ofsx;
psnext->pa->ofsy = get_panel_real_ofsy(ps->pa) - ps->pa->sizey-PNL_HEADER-PNL_DIST;
psnext->pa->ofsy = get_panel_real_ofsy(ps->pa) - psnext->pa->sizey-PNL_HEADER-PNL_DIST;
}
else {
psnext->pa->ofsx = ps->pa->ofsx + ps->pa->sizex+PNL_DIST;