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)
|
||||
uitask <- func() {
|
||||
area := areaInScrollView(s.id)
|
||||
println(C.GoString(C.object_getClassName(area)))
|
||||
objc_msgSend_rect_bool(area, _setFrameDisplay,
|
||||
int(0), int(0), width, height,
|
||||
C.BOOL(C.YES)) // redraw
|
||||
objc_msgSend_rect(area, _setFrame,
|
||||
int(0), int(0), width, height)
|
||||
C.objc_msgSend_noargs(area, _display) // and redraw
|
||||
ret <- struct{}{}
|
||||
}
|
||||
<-ret
|
||||
|
|
Loading…
Reference in New Issue