[Cuis-dev] Tips on creating responsive Morphic?
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Sun Jul 7 15:19:21 PDT 2024
Have you taken the tour?
https://github.com/Cuis-Smalltalk/Learning-Cuis/blob/master/LayoutTour.md
On 2024-07-07 20:49, Nafiz Islam via Cuis-dev wrote:
> I'm trying to create a document Morph that contains multiple page Morphs. I would like each page to always have the same height as the document Morph (excluding border) and also be able to scroll through each page with a scrollbar. The width would scale proportionally.
>
> So far I got a scrollbar with PluggableScrollPane, and I explicitly set the width and height for the scrollbar and page with morphWidth: and morphHeight:. But I haven't figured out yet how to make it responsive (i.e. continuously adjust the extent of pages and scrollbar based on the extent of the document Morph).
>
> Also, is it possible to make a Morph inflate inside its owner until it intersects with other submorphs? This might come in handy when adding toolbars.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240707/4794989b/attachment.htm>
More information about the Cuis-dev
mailing list