Re: Huge space between list elements in RichText

2019-04-26 Thread Alex Harui
The converter should produce a TextFlow. I think there is some way to pretty-print the TextFlow. Once we can see the TextFlow, hopefully we can identify what styles will control the spacing. On 4/25/19, 12:44 PM, "chris_flex" wrote: It looks even worse with the StyleableTextField...

Re: Huge space between list elements in RichText

2019-04-25 Thread chris_flex
Okay - I found the problem. I get the text from the server and somehow are \n and \r added which I did not see in Intellij Idea. var fixedString:String = explanation.getDescription().replace(new RegExp('\\n', 'g'), '').replace(new RegExp('\\r', 'g'), ''); fixes it -- Sent from:

Re: Huge space between list elements in RichText

2019-04-25 Thread chris_flex
It looks even worse with the StyleableTextField... Is there any property/style, ... I should look for which could cause the problem in our App? -- Sent from: http://apache-flex-users.246.n4.nabble.com/

Re: Huge space between list elements in RichText

2019-04-25 Thread Erik Thomas
Another approach you might try is using StyleableTextField, which I use a lot in mobile apps for rendering html: var textField:StyleableTextField = new StyleableTextField(); var styles:String = "p { leading: 2px; }"; // add all the css you need here var styleSheet:StyleSheet = new StyleSheet();

Re: Huge space between list elements in RichText

2019-04-25 Thread Carlos Rovira
HI Chris, if nothing is affecting that, it seems we have a problem there. Hope others with more knowledge of TLF could give a hand here. If there's a bug, you always can try to fix it and send us a PR to try it and if valid merge in Flex SDK El jue., 25 abr. 2019 a las 17:22, chris_flex ()

Re: Huge space between list elements in RichText

2019-04-25 Thread chris_flex
getDescription() = Test 1 2 3 Test2 *4* *5* *6* is displayed: -- Sent from: http://apache-flex-users.246.n4.nabble.com/

Re: Huge space between list elements in RichText

2019-04-25 Thread Carlos Rovira
Hi, you should send the same structure of HTML (you can change real text for dummy text) that you are using. This can be just a problem of the inner HMTL structure you are using and not something related to the flex code. just figuring El jue., 25 abr. 2019 a las 14:15, chris_flex ()