Page 1 of 1
Can not use an size in all components "ui-g ui-fluid"
Posted: 19 Oct 2017, 17:46
by ceechette
Hi, I use the Verona theme and when I use the class "ui-g ui-fluid" the "size" tag is not respected. I am mounting the wrong code maybe or it is not possible to use specific size with the class "ui-g ui-fluid"? I wait for an answer.
Note: When I put "<p: panelGrid" with "columns" equal to 8, the "size" of the components work, but I only need one or two columns at most.
Thank you so much.
"<div class="ui-g ui-fluid nopad">
<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank">
<p:outputLabel value="Código:" />
<p:inputText value="#{gerClidestBean.crudObj.gerClidestPK.cliCod}" size="10"..."
Posted: 20 Oct 2017, 14:31
by ceechette
Any Reply? Please!
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 13:23
by mert.sincan
Which PrimeFaces version are you using?
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 13:32
by ceechette
aragorn wrote: ↑26 Oct 2017, 13:23
Which PrimeFaces version are you using?
6.1
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 14:24
by mert.sincan
Please try;
Code: Select all
<style type="text/css">
.ui-fluid .ui-inputtext[size] {
width: auto;
}
</style>
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 14:26
by ceechette
aragorn wrote: ↑26 Oct 2017, 14:24
Please try;
Code: Select all
<style type="text/css">
.ui-fluid .ui-inputtext[size] {
width: auto;
}
</style>
Nice, it worked. Thank you!
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 14:27
by mert.sincan
Glad to hear, I'll add this fix to 6.1.x and 6.2 versions.
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 14:36
by ceechette
aragorn wrote: ↑26 Oct 2017, 14:27
Glad to hear, I'll add this fix to 6.1.x and 6.2 versions.
if possible perform the fix for all components, an example is for the "p: calendar", I had to change the css to:
Code: Select all
.ui-fluid .ui-inputfield[size] {
width: auto;
}
Re: Can not use an size in all components "ui-g ui-fluid"
Posted: 26 Oct 2017, 14:49
by mert.sincan
Of course
I'll add it.