Label html problem

Hi all,

I have seen that the html is resolved in a different way into the servoy label.
With my case, I would make a table incapsulation. More or less I’ve done it but
I can’t have a real control of the results.

To explain me better I’ve attached a solution sample:
[attachment=0]test_html.servoy[/attachment]

After a certain amount of tries, I suppose that when we have a table with an X number of rows, only the last is displayed correctly, so if I have only 2 rows I obtain almost the result I expect.
Into my real needs I have to make a table 1 with 3 columns and into the center column I have to put a table 2 with 5 rows, the problem is that I can’t format the rows as I would.

I’ve maked the most part of the tries on servoy 5.2.10, but into the Servoy 6 is the same (I’ve made only few tries)

Is that normal? (maybe I’m not considering something important)

Thanks in advance

Marco

test_html.servoy (6.01 KB)

You have to put quotes around color, like: bgcolor=‘#00FF00

I’m really sorry for the response delay,

I’ve checked for a quote problem but this time it seems a bug.

Here an example of code:

<html><body><table height = '60' width = '100'>
				<tr bgcolor ='#FF0000'><td height='10'></td></tr>					
				<tr bgcolor ='#00FF00'><td height='20'></td></tr>					
				<tr bgcolor ='#0000FF'><td height='30'></td></tr>                   
		</table></body></html>

that give me this result in chrome:
[attachment=2]right result.png[/attachment]

If I use the same code in servoy I obtain this:
[attachment=1]servoy result.png[/attachment]

Here a sample solution:
[attachment=0]test_html.servoy[/attachment]

test_html.servoy (3.53 KB)

right result.png

you should put 10px,20px …

Hi laurian, thanks for your answer.

I’ve followed your suggestion but without results.
Even if I put the “px” near the measures the result is not what I expect.

I’ve created a case with number: 434043

this code:

provider = "<html><body><table height='60px' width ='100px'>\
				<tr bgcolor ='#FF0000'><td height='10px'></td></tr>					\
				<tr bgcolor ='#00FF00'><td height='20px'></td></tr>					\
				<tr bgcolor ='#0000FF'><td height='30px'></td></tr>                    \
		</table></body></html>"

works fine for me; just make sure the html is correct, swing parser is not as clever as a browser

Also all cases should be logged in Jira now, old support system is not used anymore.

By copy/paste the code you’ve posted I’m obtaining the same result: the first two with the same height (the second should be doble) and the last a bit bigger but no proportions is respected.
I’m using Servoy 5.2.10.

Thanks for your time Laurian, I’ll use Jira to log in the case!