summaryrefslogtreecommitdiff
path: root/redo/label_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-08 23:47:06 -0400
committerPietro Gagliardi <[email protected]>2014-08-08 23:47:06 -0400
commitf24e177d99a395a3b4d6782f82258631548f633a (patch)
tree16d3ee66fb572770cd2182e2ab8bd3bffa909a6b /redo/label_windows.go
parent21dbda72e2e75d917216a5b4e734ccd73a0719bd (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/label_windows.go')
-rw-r--r--redo/label_windows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/label_windows.go b/redo/label_windows.go
index b61404a..561247c 100644
--- a/redo/label_windows.go
+++ b/redo/label_windows.go
@@ -81,6 +81,8 @@ func (l *label) commitResize(c *allocation, d *sizing) {
c.y += yoff
c.height -= yoff
}
+ c.y -= int(d.internalLeading)
+ c.height += int(d.internalLeading)
basecommitResize(l, c, d)
}