0

I'm using the code provided by Abhijit Rao on the following page which brings an element into view when it's contained inside and overflow:auto container.

I'm using this for a custom combobox that I'm creating and it works well in all browsers apart from Safari/Chrome where the items are scrolled into view, but the page also scrolls.

Any idea how to stop them from doing that?

Thanks, Jacques

Community
  • 1
  • 1
Jacques
  • 6,936
  • 8
  • 43
  • 102

1 Answers1

0

It would seem that the JQuery event.preventDefault() works in this case, although I'm not quite sure why it only affected webkit browsers.

Jacques
  • 6,936
  • 8
  • 43
  • 102