diff options
Diffstat (limited to 'newctrl/label_windows.go')
| -rw-r--r-- | newctrl/label_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/label_windows.go b/newctrl/label_windows.go index 61d842f..8f8f120 100644 --- a/newctrl/label_windows.go +++ b/newctrl/label_windows.go @@ -21,7 +21,7 @@ func newLabel(text string) Label { l := &label{ controlSingleHWNDWithText: newControlSingleHWNDWithText(hwnd), } - l.fpreferredSize = l.preferredSize + l.fpreferredSize = l.xpreferredSize l.fnTabStops = func() int { // labels are not tab stops return 0 @@ -45,7 +45,7 @@ const ( labelYOffset = 3 ) -func (l *label) preferredSize(d *sizing) (width, height int) { +func (l *label) xpreferredSize(d *sizing) (width, height int) { return int(l.textlen), fromdlgunitsY(labelHeight, d) } |
