[squeak-dev] How to make a scrollpane adjust to its content?

karl ramberg karlramberg at gmail.com
Tue Jan 12 19:16:24 UTC 2016


sp setScrollDeltas

Best,
Karl

On Tue, Jan 12, 2016 at 8:03 PM, Nicolai Hess <nicolaihess at gmail.com> wrote:

> See stackoverflow question
>
> http://stackoverflow.com/questions/34722545/how-to-make-a-scrollpane-adjust-to-its-content/34751687#34751687
>
> all I came up with is
> calling
> sp setScrollDeltas.
>
> This will reset (or add or remove) the scrollbars.
>
> I was wondering why something like
> rows updateLayout or
> rows changed
>
> doesn't work.
>
> Do we have a way to let a ScrollPane "know" when the submorphs changed ?
> Some way for listening to newly added submorphs. Or add
> the pane to dependents for its scrolled area and notify on changes for
> submorphs or just
> the size?
> (The content morph ("rows" in this example) can automatically adjust its
> size when we add new submorphs)
>
>
> nicolai
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160112/9368a64e/attachment.htm


More information about the Squeak-dev mailing list