[ 
https://issues.apache.org/jira/browse/PIVOT-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069680#comment-13069680
 ] 

Roger Whitcomb commented on PIVOT-772:
--------------------------------------

Hi Noel,
   Thanks for looking at this, and indeed now the exceptions are not showing 
up, but the Bounds values don't look right either.  In particular the 
"scrollAreaToVisible" doesn't do anything because the Y values of the bounds 
all appear to be 0 after a while (this is the "Multiple Lines" case):
index=79, bounds=org.apache.pivot.wtk.Bounds [116,19;2x16]
index=81, bounds=org.apache.pivot.wtk.Bounds [4,36;2x16]
index=196, bounds=org.apache.pivot.wtk.Bounds [364,0;2x16]
index=312, bounds=org.apache.pivot.wtk.Bounds [399,0;2x16]
index=431, bounds=org.apache.pivot.wtk.Bounds [413,0;2x16]
index=553, bounds=org.apache.pivot.wtk.Bounds [434,0;2x16]
index=667, bounds=org.apache.pivot.wtk.Bounds [385,0;2x16]
index=784, bounds=org.apache.pivot.wtk.Bounds [406,0;2x16]
index=900, bounds=org.apache.pivot.wtk.Bounds [364,0;2x16]
index=942, bounds=org.apache.pivot.wtk.Bounds [21,0;2x16]

> Exceptions thrown when calling getCharacterBounds 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
>            Assignee: Noel Grandin
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: Scroll.java, scroll.bxml, scroll.log, scroll2.log
>
>   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

        

Reply via email to