[Cuis-dev] Windows does not resize when contents changed

Juan Vuletich juan at cuis.st
Fri Sep 1 13:40:10 PDT 2023


Hi Hilaire,
(below)
On 8/31/2023 10:08 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi,
>
> I have a window whose contents (morph) change when browsing objects or 
> toggling to editor view.
>
> However the size of the windows should change (to get larger) in some 
> situation to at least fit all its contained morphs.
>
> Observe below. First picture, the contents changed but not the window 
> extent, when dragging the window there are graphic artefacts. Second 
> picture, when manually dragging a corner of the window, the window 
> extent is adjusted automatically to its contents. Sure I could force 
> it manually somewhere but I don't think it is right.
>
> The windows contents is changed with #replaceSubmorph:by: message in 
> the breadcrumbs pane (horizontal collection of bottons and a view below)
>
> Thanks
>
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu

Yes, SystemWindows don't #clipsSubmorphs and assume 
#submorphsMightProtrude is false. Therefore they can't be larger than 
contents. One obvious solution is to include a ScrollPane. But here you 
want the window to become larger to fit the submorphs.

Please make an image where this is easily seen, so I can take a look.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230901/c512f51c/attachment.htm>


More information about the Cuis-dev mailing list