Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Forms <li> and one word items
Forms <li> and one word items [message #294246] Mon, 07 November 2005 15:07
Eclipse UserFriend
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
Previous Topic:Question about implementation of a mor flexible project structure
Next Topic:How to disable a feature programatically?
Goto Forum:
  


Current Time: Fri May 16 06:37:25 EDT 2025

Powered by FUDForum. Page generated in 0.06860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top