Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Lon Varscsak
{ position: fixed !important; } it worked for me. Ted On Tue, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc: webobjects-dev@lists.apple.com

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Theodore Petrosky
, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc: webobjects-dev@lists.apple.com webobjects-dev@lists.apple.com Date: Tuesday, July 30, 2013, 8:21 PM lol, I'm not sure I can tell the users

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Johnny Miller
Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Lon Varscsak
The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Johnny Miller
Hi Lon, Yeah - the right implementation would be to have the date picker position's to be set relative to the input. I was trying to give you a hack. But if you have a scroll within a scroll I can see how that really complicates things. I did start on a JQuery framework for WO - there is the

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Chuck Hill
IIRC the ADP is my fault. It was the best fit that found a few years back. It has been far from problem free though. Chuck On 2013-07-31, at 7:33 PM, Lon Varscsak wrote: The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Lon Varscsak
haha, well, it's really the fault of the JS library you used. This is the first time that I've ever had problems with it…so we got years of use out of it! -Lon On Wed, Jul 31, 2013 at 7:59 PM, Chuck Hill ch...@global-village.netwrote: IIRC the ADP is my fault. It was the best fit that found

Re: AjaxModalDialog and AjaxDatePicker

2013-07-31 Thread Lon Varscsak
Yeah, I'll look at what you have and see if mine is embarassing or not. :P I don't have full coverage of the datepicker, but it covers pretty much all of what ADP did. -Lon On Wed, Jul 31, 2013 at 7:48 PM, Johnny Miller jlmil...@kahalawai.comwrote: Hi Lon, Yeah - the right implementation

Re: AjaxModalDialog and AjaxDatePicker

2013-07-30 Thread Chuck Hill
We see this too. Don't scroll? :-) My guess would be absolute vs relative positioning. Chuck On 2013-07-30, at 4:54 PM, Lon Varscsak wrote: Hey all, I have an AjaxDatePicker on an AjaxModalDialog and am running into a bit of trouble. If the page that is launching the AMD is scrolled

Re: AjaxModalDialog and AjaxDatePicker

2013-07-30 Thread Lon Varscsak
lol, I'm not sure I can tell the users that. There is this line in the calendar.js: var result = [document.viewport.getScrollOffsets().left - $(el).cumulativeScrollOffset().left, document.viewport.getScrollOffsets().top - $(el).cumulativeScrollOffset().top]; Which results in [0,0] because the

Re: AjaxModalDialog and AjaxDatePicker

2013-07-30 Thread Chuck Hill
Hi Joee, Can you test this out with our usage and let us know if this change works there too? Thanks Chuck On 2013-07-30, at 5:21 PM, Lon Varscsak wrote: lol, I'm not sure I can tell the users that. There is this line in the calendar.js: var result =

Re: AjaxModalDialog and AjaxDatePicker

2013-07-30 Thread Theodore Petrosky
try this CSS: body #calendar_control { position: fixed !important; } it worked for me. Ted On Tue, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc