You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2011/07/19 02:56:57 UTC
[jira] [Updated] (PIVOT-772) Exceptions thrown when calling
scrollAreaToVisible of TextArea when incomplete lines exist
[ https://issues.apache.org/jira/browse/PIVOT-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Whitcomb updated PIVOT-772:
---------------------------------
Attachment: scroll.bxml
Scroll.java
Just compile and run the test code. There are three choices: one demonstrate "working" code and two forms of non-working code that throws the exceptions.
Thanks.
> Exceptions thrown when calling scrollAreaToVisible of TextArea when incomplete lines exist
> ------------------------------------------------------------------------------------------
>
> Key: PIVOT-772
> URL: https://issues.apache.org/jira/browse/PIVOT-772
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Environment: Windows XP SP3, JRE 1.6_25 or JRE 1.7 (beta)
> Reporter: Roger Whitcomb
> Priority: Minor
> Fix For: 2.0.1
>
> Attachments: Scroll.java, scroll.bxml
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> If partial lines are appended to a TextArea and then "getCharacterBounds" followed by "scrollAreaToVisible" is called, Pivot throws java.lang.IndexOutOfBoundsException from TextAreaSkinParagraphView.getCharacterBounds:
> java.lang.IndexOutOfBoundsException: ix = 38
> at sun.font.StandardGlyphVector.getGlyphLogicalBounds(Unknown Source)
> at org.apache.pivot.wtk.skin.TextAreaSkinParagraphView.getCharacterBounds(TextAreaSkinParagraphView.java:393)
> at org.apache.pivot.wtk.skin.TextAreaSkin.getCharacterBounds(TextAreaSkin.java:442)
> at org.apache.pivot.wtk.TextArea.getCharacterBounds(TextArea.java:1243)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira