<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>However, #disableLayout is exactly what I was searching for. I do not think that we need any additional layout stuff for it. Thanks for your help, Stef! :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Stéphane Rollandin <lecteur@zogotounga.net><br>
<b>Gesendet:</b> Freitag, 3. April 2020 23:07:39<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> Re: [squeak-dev] Morphic equivalent of 'display: none'?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">>  > You could have such a "removed morph" temporarily #become: a
<br>
> collapsed representation (like a flat invisible morph for a list item), <br>
> and then swap it back when you need it. I have used that pattern; <br>
> #become: is fast.<br>
> <br>
> <br>
> Hm, this does not convince me. :-) #become: replaces all references to <br>
> the original morph. I could not access or modify any part of it during <br>
> it is collapsed, or I would need to deal with a second variable. This <br>
> feels like unnecessary metaprogramming.<br>
<br>
True.<br>
<br>
> <br>
>  > Oh, yes, please do not add any logic to #submorphs. It is a plain <br>
> array and a lot of things rely on this. You can implement a wrapper <br>
> Morph with all that logic, instead.<br>
> <br>
> I may have expressed myself wrong - I would never override #submorphs, I <br>
> meant to introduce a second selector, #nonSkippedSubmorphs.<br>
<br>
Hmm.. the name in itself is a code smell :)<br>
<br>
> So your general advice is to introduce a special morph that supports <br>
> morph skipping? The disadvantages of this approach would the limitation <br>
> that you cannot skip morphs in any regular morphs such as MorphicModels, <br>
> RectangleMorphs etc. ... I would rather like to use a layout for this.<br>
<br>
Yes, if you plan to use this skipping functionality transversaly over a <br>
range of already existing morphs, a layout is probably the way to go.<br>
<br>
Stef<br>
<br>
</div>
</span></font>
</body>
</html>