[
https://issues.apache.org/jira/browse/TOMAHAWK-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483509
]
Fabien Grandfgérard commented on TOMAHAWK-205:
----------------------------------------------
Hello Werner,
I'm sorry, because my patch wasn't exact. By chance with the patch that works
in my project.
I find your javascript code is very complex. The javascript would be easier if
you use position:relative for the calendar div which contain the popup of the
calendar, it will very easy to give the good position of the popup in all of
cases.
here a example of actual code :
<input id="principal:idCalendar1" name="principal:idCalendar1" alt="dd/MM/yyyy"
title="dd/MM/yyyy" class="inputCalendar_styleClass" onfocus="selectText('null',
'principal:idCalendar1')" onclick="selectText('null', 'principal:idCalendar1')"
type="text"><span id="principal:idCalendar1Span"><div style="visibility:
hidden; left: 20px; top: 200px;" ...
here with a relative position solution
<input id="principal:idCalendar1" name="principal:idCalendar1" alt="dd/MM/yyyy"
title="dd/MM/yyyy" class="inputCalendar_styleClass" onfocus="selectText('null',
'principal:idCalendar1')" onclick="selectText('null', 'principal:idCalendar1')"
type="text"><div id="principal:idCalendar1Span" style="position:relative;"><div
style="visibility: hidden; left: 0px ; top: 0px;" ...
This solution should be more simple.
> inputCalendar Popup positioned incorrectly in scrollable div
> ------------------------------------------------------------
>
> Key: TOMAHAWK-205
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-205
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Calendar
> Affects Versions: 1.1.2-SNAPSHOT
> Reporter: Geoffrey Longo
> Assigned To: Werner Punz
>
> The popup for the inputCalendar is positioned relative to the body of the
> page, not the containing div. Therefore, a calendar that is inside a
> scrollable div (overflow: auto) may not be positioned correctly if the
> containing div's left and top positons are not the same as the body.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.