We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ff55b commit ff580c2Copy full SHA for ff580c2
collects/mrlib/switchable-button.rkt
@@ -44,11 +44,12 @@
44
(send dc set-font font))))
45
46
(define/override (on-event evt)
47
- (show #f))
+ (send (get-top-level-window) show #f))
48
49
(inherit stretchable-width stretchable-height
50
min-width min-height
51
- get-client-size get-dc show)
+ get-client-size get-dc
52
+ get-top-level-window)
53
(super-new)
54
(let-values ([(tw th _1 _2) (send (get-dc) get-text-extent label small-control-font)])
55
(min-width (floor (inexact->exact (+ tw 4))))
0 commit comments