diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-08 23:47:06 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-08 23:47:06 -0400 |
| commit | f24e177d99a395a3b4d6782f82258631548f633a (patch) | |
| tree | 16d3ee66fb572770cd2182e2ab8bd3bffa909a6b /redo/container_windows.go | |
| parent | 21dbda72e2e75d917216a5b4e734ccd73a0719bd (diff) | |
Mostly fixed Labels on Windows being offset slightly; need to finish the fix by making it not apply to standalone Labels and adding comments.
Diffstat (limited to 'redo/container_windows.go')
| -rw-r--r-- | redo/container_windows.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/redo/container_windows.go b/redo/container_windows.go index b484094..68cb59f 100644 --- a/redo/container_windows.go +++ b/redo/container_windows.go @@ -20,8 +20,9 @@ type sizing struct { sizingbase // for size calculations - baseX C.int - baseY C.int + baseX C.int + baseY C.int + internalLeading C.LONG // for the actual resizing // possibly the HDWP @@ -105,12 +106,14 @@ const ( func (c *container) beginResize() (d *sizing) { var baseX, baseY C.int + var internalLeading C.LONG d = new(sizing) - C.calculateBaseUnits(c.hwnd, &baseX, &baseY) + C.calculateBaseUnits(c.hwnd, &baseX, &baseY, &internalLeading) d.baseX = baseX d.baseY = baseY + d.internalLeading = internalLeading if spaced { d.xmargin = fromdlgunitsX(marginDialogUnits, d) |
