A few more positioning bugs fixed and TODOs. I guess we can merge this now! (The redraw bugs will have to wait.)

This commit is contained in:
Pietro Gagliardi 2016-04-29 17:41:17 -04:00
parent 974413bbe3
commit 97ab0b36e0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
- windows: should the initial hwndInsertAfter be HWND_BOTTOM for what we want?
- windows: document the rules for controls and containers
- windows: document the minimum size change propagation system
- provisions for controls that cannot be grown? especiailly for windows

View File

@ -32,8 +32,8 @@ static void tabPageRelayout(struct tabPage *tp)
tabPageMargins(tp, &mx, &my);
r.left += mx;
r.top += my;
r.right -= 2 * mx;
r.bottom -= 2 * my;
r.right -= mx;
r.bottom -= my;
child = (HWND) uiControlHandle(tp->child);
uiWindowsEnsureMoveWindowDuringResize(child, r.left, r.top, r.right - r.left, r.bottom - r.top);
}