[BUG] Walkback on resizing GeeMailMorph

Doug Way dway at riskmetrics.com
Tue Mar 6 02:13:13 UTC 2001


Commenting out that line doesn't quite work for the case when inboard and hidden scrollbars are turned on.  (Which are Ned's prefs, and my own, too.  The other scrolling prefs don't matter here.  This "self hideOrShowScrollBar" line was added in one of my changesets, BTW.)

The problem is that the scrollbar will not appear/dissappear properly when the pane crosses its scrollable/unscrollable threshold.  For example, in a system browser, if you have the -- all -- category selected (e.g. in the class ScrollPane), which shows dozens of methods in the method list pane, the scrollbar will be there.  If you then select the "initialize" category which has only 2 methods, the scrollbar in the method list pane should dissappear, but it doesn't.

I guess the mystery is why this is a problem for GeeMailMorph but not the other ScrollPane subclasses.  I think it might be because GeeMailMorph (actually AlansTextMorph) is the only subclass of ScrollPane which implements layoutChanged so that it calls setScrollDeltas.  (I'm not sure about this, though... I haven't looked at it too closely.  However, that was the reason for the other bug that Ned reported last month.)

- Doug Way
  dway at riskmetrics.com


Bob Arning wrote:
> 
> Ned, Doug, all,
> 
> The simplest fix (still not sure it's the right fix) is in ScrollPane>>setScrollDeltas. Remove or comment out the first statement:
> 
>         "self hideOrShowScrollBar."
> 
> There are a lot of combinations of options wrt scrollbars and I'm not sure this works well with all of them, but it fixed the walkback in Ned's combination and seemd OK elsewhere that I looked. Try it out and see if it works before I make a fool of myself by putting it into the update stream. ;-)
> 
> Cheers,
> Bob
> 
> On Mon, 5 Mar 2001 11:22:19 -0800 Ned Konz <ned at bike-nomad.com> wrote:
> >On Mon, 5 Mar 2001 10:30:41 -0800  I wrote:
> >
> >>How to re-create:
> >>Make a new GeeMail morph from the NewMorph menu.
> >>Drop it in the world.
> >>Bring up its halos using a blue button click
> >>Resize it using the yellow handle.
> >
> >So Bob asked:
> >
> >>I'm guessing you have some particular combination of scrollbar prefs. What
> >are they?
> >
> >inboard, hidden, on right, without menu button, not narrow





More information about the Squeak-dev mailing list