<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi all,</p>
<p>I have checked the problem there was with the width of the
textarea of the objects when they are activated. It turns out that
it wasn't a problem of the encapsulate feature itself but a
general problem. Every time you activate a text object (<i>rtext_activate</i>)
its textarea width is computed either directly with its<i> </i><i>te_width</i>
attribute or with its <i>gl_pix(width|height)</i> attribute in
the case of gop canvas object. The number of xlets and the
original object box size are not taken into account so this is
where the problem comes from.<br>
</p>
<p>What do you think about this problem?</p>
<p>A quick fix could be computing the width as<i> </i><i>text_getrect</i>
does: taking into account both text length and xlets<i><br>
</i></p>
<p>Two examples of the current behaviour attached.<br>
</p>
<p>Best,</p>
<p>Guillem Bartrina Moreno<br>
</p>
</body>
</html>