diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-24 21:23:19 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-24 21:23:19 -0400 |
| commit | f9c5c41c77506142eef2461dd75b2178fc5b598a (patch) | |
| tree | d4d0e86b35e166c85ee975510c95e317e0e9f149 /redo/container_windows.go | |
| parent | 01db831c4c40959504d46e14e0845eb179759013 (diff) | |
Split ymargin into top and bottom margins to accomodate Groups on Windows; fixed those.
Diffstat (limited to 'redo/container_windows.go')
| -rw-r--r-- | redo/container_windows.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/redo/container_windows.go b/redo/container_windows.go index e1470cc..d3fd327 100644 --- a/redo/container_windows.go +++ b/redo/container_windows.go @@ -107,7 +107,6 @@ const ( paddingDialogUnits = 4 groupXMargin = 6 - // TODO groupYMarginTop = 11 // note this value /includes the groupbox label/ groupYMarginBottom = 7 ) @@ -125,7 +124,8 @@ func (c *container) beginResize() (d *sizing) { if spaced { d.xmargin = fromdlgunitsX(marginDialogUnits, d) - d.ymargin = fromdlgunitsY(marginDialogUnits, d) + d.ymargintop = fromdlgunitsY(marginDialogUnits, d) + d.ymarginbottom = d.ymargintop d.xpadding = fromdlgunitsX(paddingDialogUnits, d) d.ypadding = fromdlgunitsY(paddingDialogUnits, d) } @@ -134,7 +134,9 @@ func (c *container) beginResize() (d *sizing) { // this is because Windows groupboxes have the client rect spanning the entire size of the control, not just the active work area // the measurements Microsoft give us are for spaced margining; let's just use them d.xmargin = fromdlgunitsX(groupXMargin, d) - d.ymargin = fromdlgunitsY(groupYMarginTop, d) + d.ymargintop = fromdlgunitsY(groupYMarginTop, d) + d.ymarginbottom = fromdlgunitsY(groupYMarginBottom, d) + } return d |
