p:scrollPanel in p:dialog have not show ScrollBar

Locked
bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

19 May 2016, 07:52

hi,

I'am the RIO Licensed user.
I use primefaces 5.3 , Tomcat8.0.30 and Mojarra 2.2.8.

I found that <p:scrollPanel> in p:dialog have not show ScrollBar. but when I add "mode=native" to the scrollPanel,the scrollbar have being showing.

This below is my code:

Code: Select all

<p:dialog id="editdig1"    widgetVar="editdig" modal="true" responsive="true" resizable="false" >
   <h:form id="editForm">
	 <p:scrollPanel   style="height:200px; min-width:200px; width:270px !important;" >
		<p>
                                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean blandit tortor a ipsum vehicula, in semper sapien auctor. Nulla tempor eget est non consequat. Nulla sit amet lorem justo. Cras non tellus eros. Sed ultricies orci ut quam interdum fringilla. Nam vitae massa ac mi elementum mattis vel vitae sem. Ut eros ipsum, scelerisque a erat a, eleifend luctus nibh. Interdum et malesuada fames ac ante ipsum primis in faucibus.
                                    </p>
                                    <p>
                                        Vivamus ac ullamcorper magna. Aenean felis ante, elementum sit amet urna at, eleifend aliquet velit. Morbi a convallis magna. In nec leo vel dolor hendrerit pharetra. Cras in iaculis enim. Aenean porta sapien dignissim turpis dapibus, eu dictum velit elementum. Aliquam sollicitudin gravida luctus.
                                    </p>
                                    <p>
                                        Ut vel nulla sit amet erat laoreet eleifend nec sed lacus. Quisque placerat diam vitae justo eleifend, rutrum mollis mauris fringilla. Curabitur turpis odio, euismod id lorem a, ultricies suscipit ligula. Pellentesque ut erat a leo rhoncus porta ac sed velit. Nunc at erat ligula. Fusce vehicula posuere interdum. Curabitur tempus, tortor at sollicitudin dapibus, erat ante varius nisl, id dictum erat ipsum porttitor ipsum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla id varius enim, sed rutrum orci.
                                    </p>
                                    <p>
                                        Sed tincidunt urna quis metus lacinia commodo. Praesent convallis eros vel quam scelerisque bibendum. Mauris eget dignissim libero. Pellentesque sagittis sem quis ipsum viverra, sed consequat mi consectetur. Donec facilisis dapibus ultrices. Donec luctus auctor lacus, at congue nisi aliquet eu. Praesent in justo at risus faucibus ultricies. Fusce et libero lectus. Donec elementum pharetra sapien, at placerat purus sodales et. Vivamus iaculis lacus sed placerat rhoncus. Mauris iaculis sit amet nunc at placerat. Donec consequat euismod lacinia. Etiam nec quam vehicula, cursus massa in, ullamcorper erat.
                                    </p>
                                    <p>
                                        Praesent volutpat scelerisque vestibulum. In eu massa non neque rutrum commodo. Nunc vel enim nisi. Aenean leo ipsum, molestie vel justo nec, pharetra luctus dui. Nunc rhoncus turpis id lorem luctus consequat. Nulla condimentum adipiscing turpis consequat semper. Etiam ullamcorper velit nec hendrerit malesuada. Praesent venenatis leo sit amet arcu commodo, sit amet porta tellus suscipit. Quisque mi tortor, vestibulum in arcu non, pretium auctor libero. In commodo luctus placerat.
                                    </p>	  	  	
	</p:scrollPanel>
    </h:form>
</p:dialog>

see img here:https://drive.google.com/open?id=0B93nF ... 1gxbWtKOXM

next,once I add "mode=native" to scrollPanel like this:

Code: Select all

<p:scrollPanel mode="native"   style="height:200px; min-width:200px; width:270px !important;" >
it show like this:
see img here:https://drive.google.com/open?id=0B93nF ... zdqUlpYdEU
the scrollBar have showed.

pls help me,thanks,How can I use RIO styled scrollBar.
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

mert.sincan
Posts: 4142
Joined: 29 Jun 2013, 12:38

20 May 2016, 13:49

This is a primefaces core issue, not Rio theme. This issue has been fixed for 5.3.x and 6.0; https://github.com/primefaces/primefaces/issues/869

Screenshot;
Image

bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

24 May 2016, 12:14

thanks!
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

mert.sincan
Posts: 4142
Joined: 29 Jun 2013, 12:38

24 May 2016, 12:23

You're welcome!

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest