We offer outstanding professional Joomla!TM extensions.

Professional Joomla! Extensions

Professional Joomla! Extensions

Blog Scroll bugs in Opera with MooTools 1.1

Newsletter

Enter your email address:



Delivered by FeedBurner

Latest on Forum

Member Login



Forum Tags


Advanced search
Scroll bugs in Opera with MooTools 1.1
Tuesday, 24 November 2009 16:32

MooTools 1.1 is no longer supported by the developers, but it is still used by Joomla!

Lots of bugs arise with latest versions of brilliant Opera browser, especially if they are scroll-related.

 

I.e. with window.scrollTo() or Fx.Scroll.toElement() methods.

We have discovered that the problem is just 1 string of code in window.getHeight() method:

getHeight: function(){
if (this.webkit419) return this.innerHeight;
if (this.opera) return document.body.clientHeight;
return document.documentElement.clientHeight;
}

The special Opera case is useless here and produce errors, so we can repair it by adding our own function:

window.addEvent('domready', function() {
window.extend({
getHeight: function(){
if (this.webkit419) return this.innerHeight;
return document.documentElement.clientHeight;
}
});
});

This helps to use our own files and not to modify core MooTools file.

 
 
Copyright © 2008-2012 Blogomunity.com
Trademarks and tradenames used herein are the property of their respective holders.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Blogomunity is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.