get correct width and height
This commit is contained in:
parent
179e1ac46f
commit
8bf6881805
|
@ -47,7 +47,10 @@
|
||||||
(define gframe%
|
(define gframe%
|
||||||
(class frame%
|
(class frame%
|
||||||
(define/override (on-size w h)
|
(define/override (on-size w h)
|
||||||
(async-channel-put events-ch (list 'resize w h))
|
(async-channel-put events-ch
|
||||||
|
(list 'resize
|
||||||
|
(send c get-width)
|
||||||
|
(send c get-height)))
|
||||||
(refresh!))
|
(refresh!))
|
||||||
(define/augment (on-close)
|
(define/augment (on-close)
|
||||||
(async-channel-put events-ch 'close))
|
(async-channel-put events-ch 'close))
|
||||||
|
|
Loading…
Reference in New Issue