<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">Juan,<br>
</font></p>
<p><font size="+1">But for text like view in the model, I have this
method bellow that does not work anymore:<br>
</font></p>
<p><font size="+1"><font face="monospace">containsPoint: globalPoint<br>
"We really want rectangle detection, more user friendly"<br>
^ self canBeDrawn <br>
and: [self displayBounds <br>
ifNil: [false] <br>
ifNotNil: [:d | d containsPoint: globalPoint ]]<br>
</font><br>
</font></p>
<p><font size="+1">It it render as (if it matter):</font></p>
<p><font size="+1" face="monospace">drawOn: aCanvas<br>
| r |<br>
self contents: mathItem text.<br>
r _ self labelPosition extent: extent.<br>
aCanvas<br>
textComposition: textComposition<br>
bounds: (r insetBy: 4)<br>
color: color<br>
selectionColor: `Color red`.</font></p>
<p><font size="+1">I can compute by hand the bounding box of the
morph, but not sure about what is happening here and I want to
mention it.<br>
</font></p>
<p><font size="+1">Hilaire<br>
</font></p>
<p><font size="+1">[1] it makes it easier for the user to select
textual object.</font><br>
</p>
<div class="moz-cite-prefix">Le 22/10/2021 à 15:59, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:6172C3A4.2000507@jvuletich.org"><br>
That variable is for internal use of the framework. Usually you
don't need to care about its value. Sometimes it will be nil.
Sometimes it will be a null rectangle (like in the example you
saw). Sometimes it will be a valid rectangle. Don't worry.<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>