Hi,

When you click TreeItem in ScrollPanel
, scroll to right edge of TreeItem.
This behavior is inconvenient when there is a long text.

Can it not scroll?

Thanks.

-----
        public void onModuleLoad() {
                // Create a tree with a few items in it.
                TreeItem root = new TreeItem("root");
                root.addItem("item0");

                // Add a long text Item to the tree
                TreeItem item = new TreeItem("foobarhogehoge");
                item.addItem(new TreeItem("item11"));
                item.addItem("item12");
                item.addItem("item13");
                item.addItem("item14");

                root.addItem(item);

                Tree t = new Tree();

                ScrollPanel scrollPanel = new ScrollPanel();
                scrollPanel.setHeight("100px");
                scrollPanel.setWidth("100px");
                t.addItem(root);
                scrollPanel.add(t);
                RootPanel.get().add(scrollPanel);
        }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to