You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/11/20 13:43:02 UTC

[jira] Created: (HARMONY-2243) [classlib][swing] j.s.text.GlyphView incorrectly measures itself where text has tabs

[classlib][swing] j.s.text.GlyphView incorrectly measures itself where text has tabs
------------------------------------------------------------------------------------

                 Key: HARMONY-2243
                 URL: http://issues.apache.org/jira/browse/HARMONY-2243
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexey A. Ivanov


In situations where text has tabs, javax.swing.text.GlyphView will incorrectly measure itself which prevents the right layout.
GlyphView doesn't measure itself directly, it delegates to GlyphPainter instance and uses its getSpan() method. The method has x as one of its parameters, and it is used for tab expansion, which does depend on start coordinate. And this x is always 0.0 in Harmony.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2243) [classlib][swing] j.s.text.GlyphView incorrectly measures itself where text has tabs

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2243?page=all ]

Alexey A. Ivanov updated HARMONY-2243:
--------------------------------------

    Attachment: H2243-GlyphViewTest.patch

This new test case demonstrates the problem, however indirectly.
It looks like during layout process each of GlyphViews gets notified somehow where it will be located, which is not the case for Harmony at the moment.

> [classlib][swing] j.s.text.GlyphView incorrectly measures itself where text has tabs
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2243
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2243
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2243-GlyphViewTest.patch
>
>
> In situations where text has tabs, javax.swing.text.GlyphView will incorrectly measure itself which prevents the right layout.
> GlyphView doesn't measure itself directly, it delegates to GlyphPainter instance and uses its getSpan() method. The method has x as one of its parameters, and it is used for tab expansion, which does depend on start coordinate. And this x is always 0.0 in Harmony.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira