original commit: 2bff0a4c1ba01950b0cecce975ad3f10aa65acf5
This commit is contained in:
Matthew Flatt 1999-05-17 15:19:08 +00:00
parent decd801b1a
commit 8601b15e62

View File

@ -1426,9 +1426,8 @@
[(and horizontal? (not vertical-labels?)) (- (get-width) client-w)]
[(and (not horizontal?) vertical-labels?) (- (get-height) client-h)]
[else 0]))])
(when (not horizontal?)
(stretchable-in-x #f)
(stretchable-in-y #t))
(stretchable-in-x horizontal?)
(stretchable-in-y (not horizontal?))
((if horizontal? set-min-width set-min-height)
(max ((if horizontal? get-width get-height))
(min const-max-gauge-length range)))))))))
@ -4986,4 +4985,3 @@
(error 'get-window-text-extent "couldn't allocate sizing bitmap"))
(let-values ([(w h d a) (send dc get-text-extent string font)])
(values (inexact->exact w) (inexact->exact h)))])))