Forms <li> and one word items [message #294246] |
Mon, 07 November 2005 15:07 |
Eclipse User |
|
|
|
Originally posted by: sgollery.cadrc.calpoly.edu
Working with Eclipse Forms, I've come across some behavior that I'm hoping
to find a work-around for. It has to do with using FormText to display
bulleted lists: when the first element on a list is just one word long,
that element nearly disappears -- only the top of the word is drawn.
The easiest way to demonstrate this is to start with the tutorial at
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/pde-ui-h ome/working/EclipseForms/EclipseForms.html.
In the part that discusses FormText, remove the code that sets up the
StringBuffer and replace it with:
buf.append("<form><li>one</li></form>");
Running this, you will see part of the bullet circle, but no text. If you
change the text to "one two" then it shows up just fine.
In my application, user input from one form can be displayed in another
form that uses the <li>...</li> formatting, so I'm hoping that someone can
help me with a solution for how to display the text if a user happens to
input just one word. I've tried adding white space to the end of the word,
but that doesn't help. It looks like there needs to be at least one space
between two pieces of text in order for the display to come out right.
Does anybody have any ideas about working around this situation?
Thanks in advance,
Steve Gollery
|
|
|
Powered by
FUDForum. Page generated in 0.06860 seconds