(define-method initialize-instance ((widget <fix-resizer>) width height)
(call-next-method widget width height)
(%trace "; (initialize-instance <fix-resizer>) "widget" "width"x"height"\n")
- (let ((vertical? (or (and (fix:< width 1) (fix:> height 0))
- (fix:< height width)
- (error "Ambiguous verticality:" widget width height))))
+ (let ((vertical? (let ((w (if (fix:< width 1) #f width))
+ (h (if (fix:< height 1) #f height)))
+ (cond ((and w h (fix:> w h)) #t)
+ ((and w h (fix:< w h)) #f)
+ ((and (not w) h) #t)
+ ((and w (not h)) #f)
+ (else
+ (error "Ambiguous verticality:" w h widget))))))
(set-fix-resizer-stack-vertical?! widget vertical?)))
(define-method fix-widget-realize-callback ((widget <fix-resizer>))