CSS Overflow property, scrolling in Scriptaculous Autocompleter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

CSS Overflow property, scrolling in Scriptaculous Autocompleter

Sigrid E. Mortensen
Does anyone else have trouble with the scroll bars when using the  
Scriptaculous Autocompleter?

I have set the CSS overflow property for the autocompleter class to  
scroll (I have also tried auto with the same effect), and while the  
scroll bars render just fine, the following happens: I try scrolling,  
either by clicking in the scroll bar or dragging the thumb, and the  
browser seems to interpret that as clicking behind the scroll bar, on  
the canvas.  The autocomplete list disappears without ever showing  
the next set of selections.   In fact, when I drag the thumb, the  
browser crashes completely.

(If I click on the content of the list somewhere in the first set of  
selections, it works as expected and fills the list selection into  
the text box.)

I am using Safari and recently upgraded to version 3.0.4.  The  
crashing seems to be a new... um... feature (it's possible I didn't  
test the dragging of the thumb before), but the failure of the list  
to scroll was present in Safari 2.

Any suggestions?

Thanks,
-- Sigrid.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: CSS Overflow property, scrolling in Scriptaculous Autocompleter

Lukas Renggli
> Does anyone else have trouble with the scroll bars when using the
> Scriptaculous Autocompleter?

Maybe you have more success getting an answer to this non-Seaside
related question when asking in a script.aculo.us forum or irc
channel?

http://groups.google.com/group/rubyonrails-spinoffs
http://wiki.script.aculo.us/scriptaculous/show/IRCChannel

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: CSS Overflow property, scrolling in Scriptaculous Autocompleter

Sigrid E. Mortensen
Hi Lukas,

Thank you.  I may try that.  However, I am using Scriptaculous in  
Seaside, so I thought I might not be the only one on this list with  
this problem.

-- Sigrid.


On Dec 12, 2007, at 1:29 AM, Lukas Renggli wrote:

>> Does anyone else have trouble with the scroll bars when using the
>> Scriptaculous Autocompleter?
>
> Maybe you have more success getting an answer to this non-Seaside
> related question when asking in a script.aculo.us forum or irc
> channel?
>
> http://groups.google.com/group/rubyonrails-spinoffs
> http://wiki.script.aculo.us/scriptaculous/show/IRCChannel
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: CSS Overflow property, scrolling in Scriptaculous Autocompleter

Sigrid E. Mortensen
In reply to this post by Lukas Renggli
Hi again,

There have definitely been others with this problem.  A search of "overflow autocompleter" on this link reveals several posts discussing the issue.  Unfortunately, I am a seasoned Smalltalker who does not speak Prototype or Javascript, and I haven't the foggiest idea what they're talking about in their proposed solutions.  

How do I incorporate suggestions like this (from the web site http://elia.wordpress.com/2007/01/18/overflow-smooth-scroll-with-scriptaculous/):

From time to time while developing with script.aculo.us I needed smooth scrolling for an “overflow:auto” element:

finally I got it: http://dev.rubyonrails.org/ticket/5118

If you want to scroll to a specific element inside the container, follow this example:

function moveTo(container, element){
  Position.prepare();
  container_y = Position.cumulativeOffset($(container))[1]
  element_y = Position.cumulativeOffset($(element))[1]
  new Effect.Scroll(container, {x:0, y:(element_y-container_y)});
  return false;
}

where Position.cumulativeOffset($('target-id')) gives you an array with the absolute position of that element.

into Smalltalk/Seaside?


On Dec 12, 2007, at 1:29 AM, Lukas Renggli wrote:

Does anyone else have trouble with the scroll bars when using the

Scriptaculous Autocompleter?


Maybe you have more success getting an answer to this non-Seaside

related question when asking in a script.aculo.us forum or irc

channel?


http://groups.google.com/group/rubyonrails-spinoffs



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: CSS Overflow property, scrolling in Scriptaculous Autocompleter

Sigrid E. Mortensen
In reply to this post by Lukas Renggli
Here's another suggestion from the rubyonrails-spinoffs list that I can't make sense of.  Again, how do I make this work in Seaside?

From Sept 5:

My project recently came across a problem where the autocompleter
selection list dissapears if you try to use scrolling on it in IE. 

This seems to be a known issue, with patches submitted.
refer (http://dev.rubyonrails.org/ticket/6560, http://dev.rubyonrails.org/ticket/4782,
http://dev.rubyonrails.org/ticket/8163

So we have fixed the problem on our project by forking scriptaculous
and applying one of the patches. 

Since there seems to have been some history with this problem, I'm
just wondering what the current state of play is?
Is it likely that a patch for this will make it into an upcoming
release? 

cheers
Perryn 


follow-up post from Nov 13:

2 month later, a new release of scriptaculous is out but the bug is 
still here :( 
Which patch (among the many proposed) did you choose to fix your problem? 

Thanks,
Nicolas Terray 


Any ideas or guidance would be greatly appreciated.

-- Sigrid.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside