Fixed uiGroup children positioning on Windows.
This commit is contained in:
parent
4fc345077b
commit
dab88e74f2
|
@ -62,6 +62,8 @@ static void groupRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_t
|
||||||
return;
|
return;
|
||||||
|
|
||||||
d = uiWindowsNewSizing(g->hwnd);
|
d = uiWindowsNewSizing(g->hwnd);
|
||||||
|
x = 0; // make relative to the top-left corner of the groupbox
|
||||||
|
y = 0;
|
||||||
if (g->margined) {
|
if (g->margined) {
|
||||||
x += uiWindowsDlgUnitsToX(groupXMargin, d->BaseX);
|
x += uiWindowsDlgUnitsToX(groupXMargin, d->BaseX);
|
||||||
y += uiWindowsDlgUnitsToY(groupYMarginTop, d->BaseY);
|
y += uiWindowsDlgUnitsToY(groupYMarginTop, d->BaseY);
|
||||||
|
|
Loading…
Reference in New Issue