Yes, I see that too.

Although I think it is just a problem with the demo rather than the TextPane
component or skin.

See this method on LIne 463
TextPaneDemo#applyStyleToTextNode(org.apache.pivot.wtk.Span,
StyleApplicator, org.apache.pivot.wtk.text.TextNode, int,
org.apache.pivot.wtk.Span)
If I select the first bold 'abcd' and press the Italic button, the
'intersectionLength' variable gets set to 3 rather than 4, meaning that the
'd' is not included when the styling is applied.

JIRA does include 'demos' in the 'components' list, so feel free to create a
new issue.
https://issues.apache.org/jira/browse/PIVOT

Chris

On 27 December 2010 18:40, lello <[email protected]> wrote:

>
> I am just running the text_pane_demo in the pivot 2.0. I select some text
> and
> then I press the button to
> change the font to bold.
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/TextPane-Span-problem-tp2150948p2151336.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>

Reply via email to