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:
parent
974413bbe3
commit
97ab0b36e0
4
TODO.md
4
TODO.md
|
@ -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
|
- windows: document the minimum size change propagation system
|
||||||
|
|
||||||
- provisions for controls that cannot be grown? especiailly for windows
|
- provisions for controls that cannot be grown? especiailly for windows
|
||||||
|
|
|
@ -32,8 +32,8 @@ static void tabPageRelayout(struct tabPage *tp)
|
||||||
tabPageMargins(tp, &mx, &my);
|
tabPageMargins(tp, &mx, &my);
|
||||||
r.left += mx;
|
r.left += mx;
|
||||||
r.top += my;
|
r.top += my;
|
||||||
r.right -= 2 * mx;
|
r.right -= mx;
|
||||||
r.bottom -= 2 * my;
|
r.bottom -= my;
|
||||||
child = (HWND) uiControlHandle(tp->child);
|
child = (HWND) uiControlHandle(tp->child);
|
||||||
uiWindowsEnsureMoveWindowDuringResize(child, r.left, r.top, r.right - r.left, r.bottom - r.top);
|
uiWindowsEnsureMoveWindowDuringResize(child, r.left, r.top, r.right - r.left, r.bottom - r.top);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue