Fixed Mac OS X Area setAreaSize() not working: I was using the NSWindow setFrame:display: selector instead of sending the two NSView setFrame: and display methods separately.
This commit is contained in:
parent
8f944c7ec6
commit
a1830c8883
|
@ -503,10 +503,9 @@ func (s *sysData) setAreaSize(width int, height int) {
|
||||||
defer close(ret)
|
defer close(ret)
|
||||||
uitask <- func() {
|
uitask <- func() {
|
||||||
area := areaInScrollView(s.id)
|
area := areaInScrollView(s.id)
|
||||||
println(C.GoString(C.object_getClassName(area)))
|
objc_msgSend_rect(area, _setFrame,
|
||||||
objc_msgSend_rect_bool(area, _setFrameDisplay,
|
int(0), int(0), width, height)
|
||||||
int(0), int(0), width, height,
|
C.objc_msgSend_noargs(area, _display) // and redraw
|
||||||
C.BOOL(C.YES)) // redraw
|
|
||||||
ret <- struct{}{}
|
ret <- struct{}{}
|
||||||
}
|
}
|
||||||
<-ret
|
<-ret
|
||||||
|
|
Loading…
Reference in New Issue