TWEagle / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Request for more advanced positioning #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if any corner of the calendar could be "pinned" to any corner 
of the input. For 
instance, I'd like the upper right corner of the calendar to be adjacent to the 
upper left corner of 
my input (as shown in my attached screenshot).

To do this currently, I set the vertical position to $.dpConst.POS_TOP and the 
horizontal to $.dpConst.POS_RIGHT and then put in a negative horizontal offset 
to pull it back to the left side 
of the input.

The problem with this approach is that it isn't flexible enough to account for 
varying fonts and 
renderings on different browsers and platforms. (Let alone the user resizing 
the fonts).

Perhaps a solution would be to allow the user to specify "pinning corners" you 
could have 4 
constants $.dpConst.TOP_LEFT, $.dpConst.TOP_RIGHT, $.dpConst.BOTTOM_LEFT, 
$.dpConst.BOTTOM_RIGHT and then let the user specify one of these constants for 
the calendar 
and the input as well as including vertical and horizontal offsets so that the 
combination of the 
corners and offsets could allow any positioning the user desires.

Thanks a ton, GREAT product!

Original issue reported on code.google.com by errol.sa...@gmail.com on 8 May 2009 at 3:05

Attachments:

GoogleCodeExporter commented 9 years ago
To clarify: in the third paragraph, I use the term "user" to refer to the 
developer using your library rather than 
the end user (which was the intended meaning of the term in the second 
paragraph).

Original comment by errol.sa...@gmail.com on 8 May 2009 at 3:07

GoogleCodeExporter commented 9 years ago
I would like to see this feature too as it is annoying to see the calendar 
appear in
a different place depending on whether the calendar button is clicked or the 
input
textbox is clicked/focused. Sure I could use absolute positioning, but it would 
be
relative to the whole page so the positioning cannot be relied upon.

Original comment by luke.arm...@gmail.com on 9 Jun 2009 at 10:40