[L2Ork-dev] object textarea width

Guillem Bartrina guillembartrina at gmail.com
Wed Jul 1 08:57:05 EDT 2020


Hi all,

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 (/rtext_activate/) its textarea width is 
computed either directly with its///te_width/ attribute or with its 
/gl_pix(width|height)/ 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.

What do you think about this problem?

A quick fix could be computing the width as///text_getrect/ does: taking 
into account both text length and xlets/
/

Two examples of the current behaviour attached.

Best,

Guillem Bartrina Moreno

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20200701/495db671/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1.mkv
Type: video/x-matroska
Size: 78500 bytes
Desc: not available
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20200701/495db671/attachment-0002.mkv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2.mkv
Type: video/x-matroska
Size: 61283 bytes
Desc: not available
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20200701/495db671/attachment-0003.mkv>


More information about the L2Ork-dev mailing list