java - Floating p:calendar when scrolling -


i using primefaces 5.0.5 glassfish server 3.1.2.2.

i added <p:calendar> inside <ui:fragment> included in xhtml page.

when open select menu , scroll mouse wheel, panel float page.

i've checked this question similar issue not on same component.

the same trick doesnt work calendar. i've tried appending components around none of them works.

any feedback , comment appreciated.

many thanks.

<h:panelgrid columns="2"  id="..." style="margin: 0px 0px 30px 15px;">     <h:outputtext value="#{msg['startdate']}:"/>         <p:calendar             pattern="dd-mm-yyyy"             convertermessage="#{msg['ocs.invalidstartdateformat']}"             value="#{cc.attrs.inputobject.usagehistorystartdate}"             disabled="#{cc.attrs.inputobject.usagehistorybillingperiodoption != 'custom_date_range'}"             showon="button">         </p:calendar>     <h:outputtext value="#{msg['enddate']}:" />         <p:calendar             pattern="dd-mm-yyyy"             convertermessage="#{msg['invalidenddateformat']}"             value="#{...}"             disabled="#{...}"             showon="button">         </p:calendar> </h:panelgrid> 

issue screenshot

not sure if you, workaround add scroll event on dialog or whatever container component have. in scroll event, datepicker element , hide it. here snippet:

    $(document).ready(function() {             var dialog1 = $('.ui-dialog .ui-dialog-content');              dialog1.scroll(function() {                 $('#ui-datepicker-div').hide();             });         }); 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -