Fixed uiGroup children positioning on Windows.

This commit is contained in:
Pietro Gagliardi 2015-09-02 21:29:16 -04:00
parent 4fc345077b
commit dab88e74f2
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ static void groupRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_t
return;
d = uiWindowsNewSizing(g->hwnd);
x = 0; // make relative to the top-left corner of the groupbox
y = 0;
if (g->margined) {
x += uiWindowsDlgUnitsToX(groupXMargin, d->BaseX);
y += uiWindowsDlgUnitsToY(groupYMarginTop, d->BaseY);