What's the White box in the Tree?

9 views
Skip to first unread message

YUY0x7

unread,
Aug 19, 2006, 8:21:55 PM8/19/06
to Google Web Toolkit
When using a Tree, I'm seeing a weird little white box in the top-left
corner. When I select any, it disappears. What is it, and can it be
removed?

To see a screenshot, go to:
http://img204.imageshack.us/my.php?image=gwttreelh8.jpg

Thanks.

YUY0x7

unread,
Aug 21, 2006, 6:06:08 PM8/21/06
to Google Web Toolkit
*bump*
Any ideas?

Joel Webber

unread,
Aug 21, 2006, 6:36:42 PM8/21/06
to Google-We...@googlegroups.com
Two questions:  what browser did you see this on, and can I see the CSS you used for this app (the Tree parts would suffice)?

Thanks,
joel.

Mat Gessel

unread,
Aug 22, 2006, 1:02:54 AM8/22/06
to Google-We...@googlegroups.com
Another question, what DTD is declared for the HTML page? I was
looking over the Tree source today. Tree.moveFocus() should be
specifying pixels when setting the left/top/width/height. See:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/cc4a617a9da39655/da8179df7a1b0718

The DTD determines the rendering mode on most browsers, and the bug in
Tree.moveFocus() manifests in strict rendering mode.

-= Mat

--
Mat Gessel
http://www.asquare.net

YUY0x7

unread,
Aug 22, 2006, 1:52:22 AM8/22/06
to Google Web Toolkit
Joel,

I see it in FF, but have not tested it with IE since I'm having trouble
making something else to work there. The styles for the tree are:

.gwt-Tree
{
margin-top: 1em;
margin-bottom: 1em;
}

.gwt-Tree .gwt-TreeItem {
font-size: 80%;
cursor: pointer;
cursor: hand;
}

.gwt-Tree .gwt-TreeItem-selected {
background-color: #C3D9FF;
cursor: pointer;
cursor: hand;
}

.fxl-ProjectTree
{
margin: 8px 0px 8px 0px;
padding: 4px;
width: 40%;
height: 60%;
border: solid 1px #A2C3FB;
background-color: #E1EBFB;
overflow: auto;
}

(fxl-ProjectTree is used by doing tree.addStyleName("fxl-ProjectTree"))


Mat,

This is what I'm using:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Thanks

Reply all
Reply to author
Forward
0 new messages