-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's been some time, but i believe it's enough to use css like this:

<div style="width: 300px;height:400px;overflow: auto">
  <div wicket:id="tree">
    tree component goes here
  </div>
</div>

Sorry if i rember that incorrectly but at least it's worth a try :-)

Kind regards,
Florian Sperber

David Struck schrieb:
> I've been able to get an AJAX tree up and running and I'm very happy
> with how simple it was. My HTML is:
> 
>  <html>
>  <body>
>  <span wicket:id="myTree"></span>
>  </body>
>  </html>
> 
> and my Java is:
> 
>  ...
>  public TreePage() {
>    DefaultMutableTreeNode root = ...
>    TreeModel treeModel = new DefaultTreeModel(root);
>    Tree tree = new Tree("myTree", treeModel);
>    tree.getTreeState().collapseAll();
>    add(tree);
>  }
>  ...
> 
> Now I'd like to improve the layout and I'm not sure how to do it. First
> of all, the tree view seems to have a preset width that doesn't grow
> when one of the tree nodes goes outside the width. How can I modify the
> width of the tree view? Should I use CSS? And, if so, how do I hook my
> CSS settings in?
> 
> Second, can I move/remove the floating debugger link? And can anyone
> provide a link to a tutorial/guide that explains how to tweak pre-built
> components? Hopefully that will get me moving in the right direction.
> 
> Thanks,
> 
> David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHH8brTJfKjmvEjHwRAvN0AJ0bsBuu+v5py7ozEKKdjx5FHblBtwCgg09m
PevlYqcrzgaXlUzlhBUpfWk=
=o9ca
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to