<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/3/5 Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2013-03-05, at 08:46, Nicolai Hess &lt;<a href="mailto:nicolaihess@gmail.com">nicolaihess@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; someone knows why Morphs selector x x: and y y: are implemented differently?<br>
<br>
</div>Yes.<br>
<div class="im"><br>
&gt; Morph y and y: testing wether self world is nil whereas x and x: doesn&#39;t.<br>
<br>
</div>That&#39;s because the y coordinate does not need to be flipped.<br>
<br>
As Marcel wrote, these should be moved to the Etoys package.<br>
<div class="im"><br>
&gt; Btw. what is the preferred way to position morphs relative<br>
&gt; to the bounds of its owner. It seems morph positions are always<br>
&gt; absolute coordinates.<br>
<br>
</div>The preferred way would be to use a layout.<br>
<br>
A common way for absolute positioning is to add the children while the parent is still at 0@0.<br>
<br>
Or, just embrace global coords:<br>
<br>
        child center: parent center.<br>
<br>
(similar for other setters like #topLeft etc)<br>
<span class="HOEnZb"><font color="#888888"><br>
- Bert -<br>
<br>
<br>
</font></span></blockquote></div><br><br></div>Ah ok,<br><div class="gmail_extra">that means etoys uses x/y coordinates with origin at lower left screen corner<br>and morphs top/left are coordinates with origin at upper left screen corner.<br>
</div><div class="gmail_extra">Thank you.<br><br></div><div class="gmail_extra">Nicolai<br></div></div>