can be a p:menuButton styled in some way?
My problem is the width of component is too narrow to a text I want to place there
Code: Select all
<p:menuButton value="Options" >
<p:menuitem value="Some a little bit longer text is here" icon='some-icon' >
....
</p:menuitem>
</p:menuButton>
However changing width would help - I tried it dynamically in chrome.
But I am not sure how to set it in xhtml on p:menuButton.
style="width:200px" does nothing.
Changing it on p:menuItem helps neither. Generated sub-div is broader but frame of context menu is still narrow.
Can anyone help?
Thanks,
Milan