summaryrefslogtreecommitdiff
path: root/newctrl/area_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-18 12:47:19 -0400
committerPietro Gagliardi <[email protected]>2014-10-18 12:47:19 -0400
commitb1ac28cc938d2de25357328d9da910a84a2cc8cc (patch)
treed34d26f0022dd0e9d9c7179bd59b1c4dbe7b6942 /newctrl/area_windows.go
parent0f6e65188af0c4b1d3e4dff17ceb96bbd8ebb271 (diff)
Fixed parenting weirdnesses.
Diffstat (limited to 'newctrl/area_windows.go')
-rw-r--r--newctrl/area_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/area_windows.go b/newctrl/area_windows.go
index 19c0250..bf4b9e9 100644
--- a/newctrl/area_windows.go
+++ b/newctrl/area_windows.go
@@ -40,7 +40,7 @@ func newArea(ab *areabase) Area {
textfielddone: newEvent(),
}
a.controlSingleHWND = newControlSingleHWND(C.newArea(unsafe.Pointer(a)))
- a.fpreferredSize = a.preferredSize
+ a.fpreferredSize = a.xpreferredSize
a.SetSize(a.width, a.height)
a.textfield = C.newAreaTextField(a.hwnd, unsafe.Pointer(a))
C.controlSetControlFont(a.textfield)
@@ -330,7 +330,7 @@ func areaResetClickCounter(data unsafe.Pointer) {
a.clickCounter.reset()
}
-func (a *area) preferredSize(d *sizing) (width, height int) {
+func (a *area) xpreferredSize(d *sizing) (width, height int) {
// the preferred size of an Area is its size
return a.width, a.height
}