This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

TreeItem renders with extra line in IE8

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I construct tree with TreeItem that is the panel or even simple HTML, the IE8 renders each TreeItem with extra line. Tree occupies too much space and does not look good.

root

text0 link0

text1 link1

text2 link2

text3 link3

text4 link4

It works fine with IE9, Firefox 3.6, Google Chrome, Safari 5

root
text0 link0
text1 link1
text2 link2
text3 link3
text4 link4

My application runs in lock-down clinical environment that has only IE7 and IE8 browsers. Please help me to fix the problem.

Here is the code sample:

public class TreeSample implements EntryPoint {

public void onModuleLoad() {

TreeItem root = new TreeItem("root");

for (int i=0; i<5; i++){

HTMLPanel panel = new HTMLPanel("<span id='text'></span>" +"<span id='link'></span>");
InlineHTML text = new InlineHTML("text"+i+" ");
Anchor link = new Anchor("link"+i);
panel.add(text, "text");
panel.add(link, "link");

root.addItem(new TreeItem(panel));
}

root.setState(true);

// Create a tree with a few items in it.
Tree t = new Tree();
t.addItem(root);

// Add it to the root panel.
RootPanel.get().add(t);

}
}


Thanks for the help,
Dmitry
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!