well, that's also exactly like the HTML layout would behave:
I had to look at the generated HTML in the DOM to understand what's
going on:
If you have a div and in the div several links, which you inline, then
the links will never break: try it in a simple HTML page without any
JS-DOM magic.
I am not sure, what the best way is to make them break:
* if you add a space (or non-breaking space) at the end of you link
text, they will break:
HTML tag1 = new HTML("<a href='javascript:;'>LinkText1 </a>");
* also note that the link might break, if you add a space somewhere
in the middle of your text
HTML tag1 = new HTML("<a href='javascript:;'>Link Text1 </a>");
* you could also add a div that has one single space after each link
please let me know if this works 4 you and what you actually do about
it
I have already thought about subclassing the flowpanel, override the
add method and there:
automatically add style: display:inline and add a div with a space
after each element to make sure, that the FlowPanel always flows.
however I am not sure, if this is a good idea (if so, I think the gwt
specialists might already have done this 4 us)
On Aug 1, 2:05 pm, "Prashant Kalkar" <
kalkar.prash...@gmail.com>
wrote: