p:selectOneMenu drop down panel width

UI Components for JSF
Post Reply
tlteoh
Posts: 21
Joined: 24 Oct 2010, 16:33

27 Oct 2011, 04:59

Hi,

Anyone has any idea how can i make the p:selectOneMenu drop down panel longer than the width of the p:selectOneMenu? I had tried

.ui-selectonemenu-panel .ui-selectonemenu-list {
width:700px;
}

but no effect.

Thank,
Teoh

User avatar
bercolax
Posts: 133
Joined: 02 Aug 2009, 13:27
Location: Courtallam, India
Contact:

27 Oct 2011, 07:48

Try specifying values in the style attribute like

Code: Select all

style="height:400px;width:600px"
PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS

tlteoh
Posts: 21
Joined: 24 Oct 2010, 16:33

27 Oct 2011, 13:19

Maybe you misunderstood my problem. When click on the p:selectOneMenu, where will be a drop down panel right? I want to set the drop down panel width, not the p:selectOneMenu width.

For example look at latest showcase http://www.primefaces.org/showcase-labs ... neMenu.jsf

Under the custom content, when you click on it, the width for the drop down panel is difference than the width of the p:selectOneMenu.

I 'm trying to find the latest showcase and wanted to review the css code but can't get the latest showcase download.

Thanks,
Teoh

ndipiazza
Posts: 3
Joined: 27 May 2013, 23:09

27 May 2013, 23:10

I had great luck using:

Code: Select all

.ui-selectonemenu-panel {
	width:150px
}

sonnix
Posts: 2
Joined: 11 Jun 2013, 19:19

01 Jul 2013, 14:59

I am having a problem. The values in my dropdown select Items list box get displayed horizontally. How can i display them vertically just like in any dropdown list?

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

01 Jul 2013, 16:25

Rule no:7 from the forum rules viewtopic.php?f=3&t=1194. What do you mean by horizontal and vertical? Do you see horizontal scroll for large items.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

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

01 Jul 2013, 16:34

and rule 5, 6 and 9

ani.coder
Posts: 19
Joined: 22 Nov 2012, 12:23
Location: India

07 Jul 2013, 11:51

i am not able to set height and width of SelectOneMenu...

Primefaces 3.5, JSF 2.0, Tomcat 7
PrimeFaces 3.4 Tomcat Apache 7
Windows XP /7, Google Chrome 24.0.1312.14

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

07 Jul 2013, 14:40

cool, please read the forum posting rules...

cfleenor
Posts: 1
Joined: 23 Nov 2013, 01:35

23 Nov 2013, 01:40

tlteoh wrote:Hi,

Anyone has any idea how can i make the p:selectOneMenu drop down panel longer than the width of the p:selectOneMenu? I had tried

.ui-selectonemenu-panel .ui-selectonemenu-list {
width:700px;
}

but no effect.

Thank,
Teoh
Use the property panelStyle for direct CSS styling, or panelStyleClass for applying a CSS styling class.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests