TimePicker wrong poistioning when scrolling

Community Driven Extensions Project
Post Reply
remicek
Posts: 20
Joined: 05 May 2014, 22:09

28 Aug 2014, 01:19

I use timepicker on page with scrolling, i get problem presented here http://jsfiddle.net/joycse06/m6A5q/embedded/result/ and described here http://stackoverflow.com/questions/1063 ... -while-scr. Is there a way to fix this other than changing JS files? I'd like it stick to the component not page.

Edit: To be more specific the same behaviour happen on demo: http://www.primefaces.org/showcase-ext/ ... cUsage.jsf
When i click on popup mode input and scroll down:
Image

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

28 Aug 2014, 12:16

The only thing I can think of without changing the javascript of either the timeline component itself or the PFE 'wrapper' is to try to move the div that is appended to the body back into the 'component' with some jquery dom manipulation. But I'm not sure that will work.

remicek
Posts: 20
Joined: 05 May 2014, 22:09

28 Aug 2014, 16:04

I wanted to avoid changing js, because i dont really know it. Is there some solution for this chaning js files?

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

28 Aug 2014, 21:13

I have no clue what you mean sorry...

remicek
Posts: 20
Joined: 05 May 2014, 22:09

28 Aug 2014, 21:22

I'll clarify, i wanted to fix my problem by applying some work around, but it seems the only way to fix this problem is to unpack primefaces extension jar and change javascript file (timepicker.js) for time picker, but i have almost no clue what to change there.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

29 Aug 2014, 09:05

Hi.

Please consider that the showcase http://www.primefaces.org/showcase-ext/ ... cUsage.jsf is an old one (2.0.0). We have released 2.1.0 and I can not reproduce this issue there (TimePicker has been updated there). Cagatay is on vacation right now, but he promised to deploy the new showcase when he is back. Thanks.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

remicek
Posts: 20
Joined: 05 May 2014, 22:09

29 Aug 2014, 12:42

i have the 2.1.0 PFE version and in my application i get that behaviour:
Image

When i scoll page and execute p:dialog event, pe:timepicker is rendered stick to the content form (which was scrolled) instead of stick to component. It is working fine if no scrolling is used.


Code: Select all

<h:form id="content">
	<h:form id="scheduleForm">
		<p:dialog>
			<h:panelGrid id="eventDetails" columns="2">
						
						<p:outputLabel for="startTime"
							value="#{messages.label_appointmentstartDate}" />
						<pe:timePicker id="startTime" styleClass="timePicker"
							value="#{scheduleBean.event.startTime}" mode="popup"
							widgetVar="startTimeWidget" locale="pl" required="true"
							onHourShow="tpStartOnHourShowCallback"
							onMinuteShow="tpStartOnMinuteShowCallback"
							requiredMessage="#{messages.required}" />
							
			</h:panelGrid>
		<p:dialog/>
	<h:form/>
<h:form/>

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

03 Sep 2014, 22:46

Please try to append the p:dialog to the body by the "appendTo" attribite. E.g. appendTo="@(body)"
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests