diff --git a/TODO.md b/TODO.md index 5a49442b..8f9fdc1d 100644 --- a/TODO.md +++ b/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 - provisions for controls that cannot be grown? especiailly for windows diff --git a/windows/tabpage.cpp b/windows/tabpage.cpp index b1df4c05..d1124ee4 100644 --- a/windows/tabpage.cpp +++ b/windows/tabpage.cpp @@ -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); }