mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Fix opera load issue.
This commit is contained in:
parent
6ef4ee9ba3
commit
131d5b18e8
@ -1031,11 +1031,9 @@ window.onDomReady = function(fn) {
|
|||||||
};
|
};
|
||||||
window.extend({getWidth:function() {
|
window.extend({getWidth:function() {
|
||||||
if (this.webkit419)return this.innerWidth;
|
if (this.webkit419)return this.innerWidth;
|
||||||
if (this.opera)return document.body.clientWidth;
|
|
||||||
return document.documentElement.clientWidth;
|
return document.documentElement.clientWidth;
|
||||||
},getHeight:function() {
|
},getHeight:function() {
|
||||||
if (this.webkit419)return this.innerHeight;
|
if (this.webkit419)return this.innerHeight;
|
||||||
if (this.opera)return document.body.clientHeight;
|
|
||||||
return document.documentElement.clientHeight;
|
return document.documentElement.clientHeight;
|
||||||
},getScrollWidth:function() {
|
},getScrollWidth:function() {
|
||||||
if (this.ie)return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth);
|
if (this.ie)return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth);
|
||||||
|
@ -3709,7 +3709,6 @@ window.extend({
|
|||||||
|
|
||||||
getWidth: function() {
|
getWidth: function() {
|
||||||
if (this.webkit419) return this.innerWidth;
|
if (this.webkit419) return this.innerWidth;
|
||||||
if (this.opera) return document.body.clientWidth;
|
|
||||||
return document.documentElement.clientWidth;
|
return document.documentElement.clientWidth;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -3720,7 +3719,6 @@ window.extend({
|
|||||||
|
|
||||||
getHeight: function() {
|
getHeight: function() {
|
||||||
if (this.webkit419) return this.innerHeight;
|
if (this.webkit419) return this.innerHeight;
|
||||||
if (this.opera) return document.body.clientHeight;
|
|
||||||
return document.documentElement.clientHeight;
|
return document.documentElement.clientHeight;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user