forked from bartvdbraak/blender
Fix T37777: layout.column_flow() not working correct with retina / DPI.
This commit is contained in:
parent
09b859d03f
commit
9c6fc9f15e
@ -1619,11 +1619,11 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
|
||||
|
||||
if (vertical) {
|
||||
w = BLI_rctf_size_x(&v2d->cur);
|
||||
em = (ar->type->prefsizex) ? UI_UNIT_Y / 2 : UI_UNIT_Y;
|
||||
em = (ar->type->prefsizex) ? 10 : 20; /* works out to 10*UI_UNIT_X or 20*UI_UNIT_X */
|
||||
}
|
||||
else {
|
||||
w = UI_PANEL_WIDTH;
|
||||
em = (ar->type->prefsizex) ? UI_UNIT_Y / 2 : UI_UNIT_Y;
|
||||
em = (ar->type->prefsizex) ? 10 : 20;
|
||||
}
|
||||
|
||||
/* create panels */
|
||||
|
Loading…
Reference in New Issue
Block a user