CVS mcclim (scroll-extent vs. move-sheet)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
McCLIM |
Confirmed
|
Low
|
Unassigned |
Bug Description
Report from Andy Hefner
affects mcclim
status confirmed
importance low
tag stream scroll resize
done
On 10/28/06, thenriksen <email address hidden> wrote:
> + ;; XXX: We cannot use `scroll-extent', because McCLIM ignores it
> + ;; unless the scrollee happens to be drawing. Very weird, should
> + ;; be fixed.
I think I finally deciphered the purpose of the method in
recording.lisp which defines this odd behavior: to supress scrolling
of the stream when recording output to an offscreen record (such as
using with-output-
simply removing the method would be wrong. This suggests that output
to an offscreen output record should also not cause the stream-pane to
be resized. McCLIM does not guard against this case. The following
program demonstrates the problem:
(in-package :clim-user)
(define-
()
(:pane
(scrolling (:width 300 :height 300)
(make-pane :application-pane
:end-
:display-function
(lambda (frame stream)
The correct solution might involve checking that the open output
record is connected to the stream output history, and supressing
resizing and scrolling only if it is not (indicating offscreen
drawing). Hmm.