Layout is broken with Calendar Widget with button

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Klenkes
Posts: 13
Joined: 11 Jul 2016, 15:43

24 May 2017, 11:47

Does anyone have a tip for me, why the layout is broken when I use<p:calendar showOn="button"/> ?
Without the button, everything is fine.

Image

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

24 May 2017, 12:16

I couldn't replicate it. Please see; https://www.primefaces.org/ultima/forms.xhtml

Also, the input fields look different on your side. Do you have them.css in your project? Do you get an error in browser console?

Klenkes
Posts: 13
Joined: 11 Jul 2016, 15:43

24 May 2017, 13:58

There are no errors in browser console.

Yes, I have some customization. For example i changed the variables fontSize (11px) and lineHeight (14px).
The input fields look different because I changed the border-width of .ui-inputfield.

I asked this question with the hope that someone could give me a hint where I could look for the problem.

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

26 May 2017, 14:30

Maybe, you can look position of the calendar button with browser inspector.

Klenkes
Posts: 13
Joined: 11 Jul 2016, 15:43

29 May 2017, 13:46

With this snippet I can replicate it with the standard Ultima css files:

Code: Select all

<div class="card">
	<h:form>
		<p:panelGrid columns="4" layout="grid" styleClass="ui-panelgrid-blank form-group">
						
			<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank form-group">
				<p:outputLabel for="_test1" value="Test 1" />
				<p:inputText id="_test1" />
			</p:panelGrid>						
						
			<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank form-group">
				<p:outputLabel for="_test2" value="Test 2" styleClass="name" />
				<p:calendar id="_test2" showOn="button" />
			</p:panelGrid>
					
			<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank form-group">
				<p:outputLabel for="_test3" value="Test 3" styleClass="name" />
				<p:inputText id="_test3" />
			</p:panelGrid>
					
			<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank form-group">
				<p:outputLabel for="_test4" value="Test 4" />
				<p:inputText id="_test4" />
			</p:panelGrid>	
			
		</p:panelGrid>
	</h:form>
</div>

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

29 May 2017, 15:43

I couldn't replicate this issue with your sample codes. Which PrimeFaces and Ultima version are you using? Also, did you try it in our sample project?

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests