google-code-export / jscrollpane

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

Compatibility fix for jQuery 1.3.x and IE7+8 #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using IE 7 & 8
2. Opera (works only at first load - after refresh (F5) it disappears)
3.

What is the expected output? What do you see instead?
expected to see alternative scrollbar -> error triggered in IE

What version of the jScrollPane are you using? On what browser? And
operating system?
IE7+8 + JScroll 1.2.3 + JQuery 1.3.1

Please provide a URL to a page displaying the problem.
(fixed the Problem in sources, so that it now works :) But Opera does
misbehave! so take a look at http://zwenkau.itns.de/typo3

Please provide any additional information below.
I'could solve the problem in IE 7+8 (no IE 6 available) and it still works
in Firefox. Opera didn't work neither. :( 

I localized a logical error that ("this.originalPadding...") inside only
one branch of the "if ($(this).parent().is('.jScrollPaneContainer'))"
if/else section, but the "this.originalPadding..." will lately be called
after "if (settings.reinitialiseOnImageLoad)" so I made it always available
by moving the code outside th if/else section.

The second thing that will stop the IE script from executing is
"cssToApply"-section. This will simply fail! I've changed it to
"$this.css('foo', 'bar');" (about 5 times close to each other in script)
and then it worked fine.

I've attached my version of the script to this article. Maybe you will
check it and upgrade your plugIn for compatibility to jQuery 1.3.x?

Original issue reported on code.google.com by google_w...@it-netservice.de on 29 Jan 2009 at 6:51

Attachments:

GoogleCodeExporter commented 9 years ago
I just looked at your markup and you are including the jScrollPaneContainer 
class
manually in your sourcecode. You shouldn't do this. The container is generated 
and
added dynamically by the script. I imagine that this is the cause of all of your
problems but I will update the examples to use jQuery 1.3.1 and see if I notice 
any
problems,

Cheers,

Kelvin :)

Original comment by kelvin.l...@gmail.com on 29 Jan 2009 at 9:52

GoogleCodeExporter commented 9 years ago
In r45 I updated all of the examples to run on the latest jQuery 1.3.1 and I 
tested
quickly and didn't notice any problems. Please let me know if you notice any 
problems
with the examples on my site now they are using the new jQuery:

http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

Cheers,

Kelvin :)

Original comment by kelvin.l...@gmail.com on 29 Jan 2009 at 10:02