diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 12:47:19 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 12:47:19 -0400 |
| commit | b1ac28cc938d2de25357328d9da910a84a2cc8cc (patch) | |
| tree | d34d26f0022dd0e9d9c7179bd59b1c4dbe7b6942 /newctrl/textfield_windows.go | |
| parent | 0f6e65188af0c4b1d3e4dff17ceb96bbd8ebb271 (diff) | |
Fixed parenting weirdnesses.
Diffstat (limited to 'newctrl/textfield_windows.go')
| -rw-r--r-- | newctrl/textfield_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/textfield_windows.go b/newctrl/textfield_windows.go index 8b30a26..76ec882 100644 --- a/newctrl/textfield_windows.go +++ b/newctrl/textfield_windows.go @@ -24,7 +24,7 @@ func startNewTextField(style C.DWORD) *textfield { controlSingleHWNDWithText: newControlSingleHWNDWithText(hwnd), changed: newEvent(), } - t.fpreferredSize = t.preferredSize + t.fpreferredSize = t.xpreferredSize C.controlSetControlFont(t.hwnd) C.setTextFieldSubclass(t.hwnd, unsafe.Pointer(t)) return t @@ -70,6 +70,6 @@ const ( textfieldHeight = 14 ) -func (t *textfield) preferredSize(d *sizing) (width, height int) { +func (t *textfield) xpreferredSize(d *sizing) (width, height int) { return fromdlgunitsX(textfieldWidth, d), fromdlgunitsY(textfieldHeight, d) } |
