[Cuis-dev] [bug] Artifacts when moving a SystemWindow

Juan Vuletich juan at cuis.st
Mon Jan 20 09:34:01 PST 2025


On 1/20/2025 1:46 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:
> Hi folks,
>
> I just found out about this weird behavior:
> Open a workspace and evaluate:
>
> This makes the LayoutMorph grow as expected:
>
> layout := LayoutMorph newColumn.
> layout openInWorld.
> 10 timesRepeat: [ layout addMorph: LabelMorph new ].
>
>
> This opens a SystemWindow and its layout content appear to be 
> clipped to the size of the window, but moving the window
> shows the label morphs rendered outside the window, allowing you to 
> "paint" using them (see attached screenshot):
>
> window := SystemWindow new.
> window openInWorld.
> 10 timesRepeat: [ window addMorph: LabelMorph new ].

See #submorphsMightProtrude. It is expected that SystemWindows (and many 
other morphs) control their submorphs to guarantee this doesn't happen.

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/20250120/9c5b348c/attachment.htm>


More information about the Cuis-dev mailing list