Fix opera load issue.
This commit is contained in:
@@ -1031,11 +1031,9 @@ window.onDomReady = function(fn) {
|
||||
};
|
||||
window.extend({getWidth:function() {
|
||||
if (this.webkit419)return this.innerWidth;
|
||||
if (this.opera)return document.body.clientWidth;
|
||||
return document.documentElement.clientWidth;
|
||||
},getHeight:function() {
|
||||
if (this.webkit419)return this.innerHeight;
|
||||
if (this.opera)return document.body.clientHeight;
|
||||
return document.documentElement.clientHeight;
|
||||
},getScrollWidth:function() {
|
||||
if (this.ie)return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth);
|
||||
@@ -2168,4 +2166,4 @@ var Accordion = Fx.Elements.extend({options:{onActive:Class.empty,onBackground:C
|
||||
},showThisHideOpen:function(index) {
|
||||
return this.display(index);
|
||||
}});
|
||||
Fx.Accordion = Accordion;
|
||||
Fx.Accordion = Accordion;
|
||||
|
@@ -3709,7 +3709,6 @@ window.extend({
|
||||
|
||||
getWidth: function() {
|
||||
if (this.webkit419) return this.innerWidth;
|
||||
if (this.opera) return document.body.clientWidth;
|
||||
return document.documentElement.clientWidth;
|
||||
},
|
||||
|
||||
@@ -3720,7 +3719,6 @@ window.extend({
|
||||
|
||||
getHeight: function() {
|
||||
if (this.webkit419) return this.innerHeight;
|
||||
if (this.opera) return document.body.clientHeight;
|
||||
return document.documentElement.clientHeight;
|
||||
},
|
||||
|
||||
@@ -7170,4 +7168,4 @@ var Accordion = Fx.Elements.extend({
|
||||
|
||||
});
|
||||
|
||||
Fx.Accordion = Accordion;
|
||||
Fx.Accordion = Accordion;
|
||||
|
Reference in New Issue
Block a user