Horizontal scrolling in tree

UI Components for JSF
Post Reply
Lexuor76
Posts: 1
Joined: 22 Sep 2011, 09:28

22 Sep 2011, 09:45

Hi,

I'm a new user in PrimeFaces. I try PrimeFaces 3.0 M3 because I use trees and 2.2.1 trees are not compatible with IE9.

I have a problem with horizontal scrolling in tree. I have a huge tree witch contains a complex structure of children nodes.

When I expand the tree the vertical scroll appear when it's required but not the horizontal. Tree nodes are reorganized with returns to stay visible.

Code: Select all

<p:tree selectionMode="single" dynamic="true" value="#{treeBean.root}" var="node" style="border: 1px solid blueviolet; margin: 0px; padding: 0px;">
          <p:treeNode>
                        <h:outputText value="#{node}" style="overflow: visible;" />
          </p:treeNode>
</p:tree>
Sorry for my bad english and thank you for your answers.
Coding with : PrimeFaces 3.0 M3, JSF2.1 and GlassFish Server 3.0
Language : French

Danijel
Posts: 151
Joined: 02 Apr 2012, 01:04

11 Apr 2012, 17:24

Did you resolve the problem? I have similar issue.
| Tomcat 7.0.25 + MyFaces 2.1.6 + PrimeFaces 3.5.0 | Firefox 21 |

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

11 Apr 2012, 19:13

Try some css... The overflow might help...

jlgarcia1977
Posts: 32
Joined: 18 Oct 2011, 18:21

12 Mar 2014, 17:07

I use this and the scroll appears when needed and works well but does not have styles

Code: Select all

<div style="height: 305px; width: 520px; overflow: auto">

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

12 Mar 2014, 18:14

please create a new topic... and post version info

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests