summaryrefslogtreecommitdiff
path: root/redo/container_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-04 20:10:23 -0400
committerPietro Gagliardi <[email protected]>2014-08-04 20:10:23 -0400
commit91f1a34003d56a5778d1ae48f7d18c3f27eea1ed (patch)
treec49f88038ff3c42bc4c62216987b311355bb43f6 /redo/container_windows.go
parentef513c433732f3a12f2d83417b9b1fb92d152930 (diff)
Re-added base units calculation to the resizing code now that container stores a HWND again.
Diffstat (limited to 'redo/container_windows.go')
-rw-r--r--redo/container_windows.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/redo/container_windows.go b/redo/container_windows.go
index 88abd3e..06fbb5b 100644
--- a/redo/container_windows.go
+++ b/redo/container_windows.go
@@ -91,10 +91,13 @@ const (
)
func (c *container) beginResize() (d *sizing) {
+ var baseX, baseY C.int
+
d = new(sizing)
- d.baseX = C.baseX
- d.baseY = C.baseY
+ C.calculateBaseUnits(c.hwnd, &baseX, &baseY)
+ d.baseX = baseX
+ d.baseY = baseY
if spaced {
d.xmargin = fromdlgunitsX(marginDialogUnits, d)