summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-25 23:28:24 -0400
committerPietro Gagliardi <[email protected]>2014-10-25 23:28:24 -0400
commitaf2657e17edfb1905b916dbe358deb27862f379f (patch)
tree3ce309a29dc15a03870ebdb3e8917f814fd6c495
parentd0fa80155d9824e45e97a7080cbec6babff1bc50 (diff)
Improved non-margined filled Group margins on Windows.
-rw-r--r--group_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/group_windows.go b/group_windows.go
index d4acdda..8666b99 100644
--- a/group_windows.go
+++ b/group_windows.go
@@ -68,9 +68,9 @@ func (g *group) xpreferredSize(d *sizing) (width, height int) {
marginRectDLU(&r, -groupYMarginTop, -groupYMarginBottom, -groupXMargin, -groupXMargin, d)
} else {
// unforutnately, as mentioned above, the size of a groupbox includes the label and border
- // 1DLU on each side should be enough to make up for that; TODO is not, we can change it
+ // 1 character cell (4DLU x, 8DLU y) on each side (but only 3DLU on the bottom) should be enough to make up for that; TODO is not, we can change it
// TODO make these named constants
- marginRectDLU(&r, -1, -1, -1, -1, d)
+ marginRectDLU(&r, -8, -3, -4, -4, d)
}
return int(r.right - r.left), int(r.bottom - r.top)
}
@@ -92,7 +92,7 @@ func (g *group) xresize(x int, y int, width int, height int, d *sizing) {
// see above
marginRectDLU(&r, groupYMarginTop, groupYMarginBottom, groupXMargin, groupXMargin, d)
} else {
- marginRectDLU(&r, 1, 1, 1, 1, d)
+ marginRectDLU(&r, 8, 3, 4, 4, d)
}
g.child.resize(int(r.left), int(r.top), int(r.right - r.left), int(r.bottom - r.top), d)
}