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
p:selectOneMenu drop down panel width
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
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
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
I had great luck using:
Code: Select all
.ui-selectonemenu-panel {
width:150px
}
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
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Use the property panelStyle for direct CSS styling, or panelStyleClass for applying a CSS styling class.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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 28 guests