• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxAutoComplete in AjaxModalDialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxAutoComplete in AjaxModalDialog


  • Subject: Re: AjaxAutoComplete in AjaxModalDialog
  • From: Samuel Pelletier via Webobjects-dev <email@hidden>
  • Date: Sun, 5 Dec 2021 08:13:27 -0500

Hi Ricardo,

I also noticed the problem outside modal dialog after testing it. After many
try and errors, I found a pattern. There is a problem with the latest
prototype.js clonePosition when the element is inside a float block (at least).

I simplified the clone position to use the new (prototype 1.7) Layout functions
and it fixes my problems.

Here is the diff from my GitHub fork, can you give it a try on your apps. If
you have good results, I will create a pull request for the main Wonder source.

https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085

Regards,

Samuel



> Le 4 déc. 2021 à 22:55, Ricardo Parada <email@hidden> a écrit :
>
> Hi Samuel,
>
> That sounds like a problem that we had that was solved by rolling back
> prototype.js to version 1.7
>
> I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1,
> 1.7.2 and 1.7.3.
>
> I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete.
>
> By the way, for us, the problem occurred outside ajax modal dialogs too when
> the page was scrolled if I remember correctly.
>
> But we also had other stuff that required Ajax dragging and for that we had
> to roll back all the way to the good old 1.7
>
> I think I discussed this problem in the WebObjects slack channel and I may
> have included screenshots of what I was seeing.
>
> Hope that helps.
>
> Sent from my iPhone
>
>> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev
>> <email@hidden> wrote:
>>
>> Hi,
>>
>> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works
>> OK. A very strange problem occur when the main page is scrolled though, the
>> selection choices are displayed with a vertical distance from the textfield
>> that correspond to the vertical scroll of the main page bellow.
>>
>> It seems the javascript code compute this offset and set the absolute
>> position using it. This is fine on the scrolled contents but not inside a
>> modal dialog.
>>
>> Someone knows a work around for this problem ?
>>
>> Regards,
>>
>> Samuel
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AjaxAutoComplete in AjaxModalDialog
      • From: Ricardo Parada via Webobjects-dev <email@hidden>
References: 
 >AjaxAutoComplete in AjaxModalDialog (From: Samuel Pelletier via Webobjects-dev <email@hidden>)

  • Prev by Date: AjaxAutoComplete in AjaxModalDialog
  • Next by Date: Re: AjaxAutoComplete in AjaxModalDialog
  • Previous by thread: AjaxAutoComplete in AjaxModalDialog
  • Next by thread: Re: AjaxAutoComplete in AjaxModalDialog
  • Index(es):
    • Date
    • Thread