You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Dirk Moebius (JIRA)" <ji...@apache.org> on 2010/04/29 10:19:54 UTC

[jira] Created: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

TextArea wrapText=true computes wrong preferredHeight
-----------------------------------------------------

                 Key: PIVOT-485
                 URL: https://issues.apache.org/jira/browse/PIVOT-485
             Project: Pivot
          Issue Type: Bug
          Components: wtk-terra
    Affects Versions: 1.5
            Reporter: Dirk Moebius


TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.

It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Dirk Moebius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dirk Moebius updated PIVOT-485:
-------------------------------

    Attachment: TextAreaTest.java

> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.5
>            Reporter: Dirk Moebius
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-485.
------------------------------

    Fix Version/s: 1.5
                       (was: 1.5.1)
       Resolution: Fixed

> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.4
>            Reporter: Dirk Moebius
>             Fix For: 1.5
>
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown updated PIVOT-485:
-----------------------------


FWIW, I have verified that a wrapping Label does not exhibit this behavior. Since TextAreaSkin will be updated to perform wrapping using similar logic to LabelSkin, I am pretty sure that this will be resolved for 1.5.1.


> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.4
>            Reporter: Dirk Moebius
>             Fix For: 1.5.1
>
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown updated PIVOT-485:
-----------------------------

        Fix Version/s: 1.5.1
    Affects Version/s: 1.4
                           (was: 1.5)

Moving this to 1.5.1 since text area layout will be overhauled for that release.


> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.4
>            Reporter: Dirk Moebius
>             Fix For: 1.5.1
>
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Dirk Moebius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866082#action_12866082 ] 

Dirk Moebius commented on PIVOT-485:
------------------------------------

I verified that this has been fixed. (Amazing that you only needed to change a "<=" into "<" in TextArea !)

This is great, because now I can finally use a TextArea inside a Prompt.
Thanks!


> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.4
>            Reporter: Dirk Moebius
>             Fix For: 1.5
>
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-485) TextArea wrapText=true computes wrong preferredHeight

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866136#action_12866136 ] 

Greg Brown commented on PIVOT-485:
----------------------------------

Turns out that I also needed to catch a boundary condition (when the character count is 0), but yeah - the fix wasn't too bad.


> TextArea wrapText=true computes wrong preferredHeight
> -----------------------------------------------------
>
>                 Key: PIVOT-485
>                 URL: https://issues.apache.org/jira/browse/PIVOT-485
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 1.4
>            Reporter: Dirk Moebius
>             Fix For: 1.5
>
>         Attachments: TextAreaTest.java
>
>
> TextArea with {wrapText:true} and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.
> It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.