[jira] [Updated] (PIVOT-772) Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

2011-07-26 Thread Roger Whitcomb (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIVOT-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Whitcomb updated PIVOT-772:
-

Attachment: Scroll2.java

Hi Noel,
If you use the new attached "Scroll2.java" and choose "Multiple Lines per 
Append", you can see the behavior very clearly.  Once it finishes (and the 
buttons are enabled again), you will see line 34 at the bottom of the TextArea, 
but if you move the scroll bar down you will see that there are lines 35-38 
that are still not visible (and a blank line underneath that as well).  So, 
even though we are consistently getting the character bounds of the very last 
character every time, the scroll doesn't quite scroll enough so that by the end 
we still have five lines that are not visible and could still be scrolled into 
view with the scroll bar.

Thanks!

> 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, Scroll2.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




[jira] [Updated] (PIVOT-772) Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

2011-07-19 Thread Roger Whitcomb (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIVOT-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Whitcomb updated PIVOT-772:
-

Attachment: scroll2.log
scroll.log

"scroll.log" is the result choosing "Multiple Lines Per Append", and 
"scroll2.log" is from "Partial Line Per Append".

> 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
>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




[jira] [Updated] (PIVOT-772) Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

2011-07-18 Thread Roger Whitcomb (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIVOT-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Whitcomb updated PIVOT-772:
-

Summary: Exceptions thrown when calling getCharacterBounds of TextArea when 
incomplete lines exist  (was: Exceptions thrown when calling 
scrollAreaToVisible of TextArea when incomplete lines exist)

Changed issue title.

> 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
>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