AlreadyM / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
0 stars 0 forks source link

jScrollPane Jumps to TOP #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create edit in place. (or use jCrop, prettyCheckboxes)
2. Put these elements inside jScrollPane

What is the expected output? What do you see instead?
It should stay on the current position where element is.

What version of the jScrollPane are you using? On what browser? And
operating system?

jScrollPane: Latest Version
Browsers: All
OS: XP, VISTA, MAC OSX

Please provide a URL to a page displaying the problem.
http://pk.dynamiconlinesystems.com/jedit/

Please provide any additional information below.
Please try scrolling down and clicking on any of the category title, or
category status (active/inactive). It will jump to top and we have to
scroll that back down. 

I have searched the issues and found about prettycheckboxes, but i wanted
to write it here as this issue is not only with pretty checkboxes, as you
can see in given sample link. I have stripped the code from our admin panel
for a client of edit in place plugin to show you. But in different parts we
are using different plugins which are having this problem.

1. PrettyCheckBoxes
2. Jeditable 
3. jCrop

I hope this issue will arrive with someother plugins as well.

Thank you.

Original issue reported on code.google.com by aamirrajpoot on 12 Apr 2010 at 5:42

GoogleCodeExporter commented 9 years ago
I imagine it is a conflict with the code which monitors items inside the 
jScrollPane
for focus so that the pane will scroll as you tab through fields and inputs 
inside it...

You could try to find this line:

$('*', this).bind(

And change it to something like:

$('#an-id-that-does-not-exist', this).bind(

To see if that helps... I don't have time right now to implement a more complete
solution but let me know if that avoids the problem for you...

Original comment by kelvin.l...@gmail.com on 12 Apr 2010 at 5:51

GoogleCodeExporter commented 9 years ago
Great, it worked. its on line 490 if any body cant find. 

Also worked on jCrop and all other plugins which we are using. 

Thanks a lot.

Original comment by aamirrajpoot on 12 Apr 2010 at 6:05

GoogleCodeExporter commented 9 years ago
Cool. I'm going to add a setting which can disable the focus code so that you 
don't
have to edit the script... I'll update this issue when I have found the time to 
do it...

Original comment by kelvin.l...@gmail.com on 12 Apr 2010 at 6:10

GoogleCodeExporter commented 9 years ago
I have just announced the beta of a completely rewritten version of jScrollPane:

http://groups.google.com/group/jscrollpane/browse_thread/thread/c1bc1bf63e3f80d8

Please test and reply on the list if you are still having this issue,

Thanks,

Kelvin

Original comment by kelvin.l...@gmail.com on 17 Aug 2010 at 4:19