Browse Source

Hue-176. Implement fix for Chrome bug when scrollbars are hidden.

Aaron Newton 15 years ago
parent
commit
af76042e23
1 changed files with 7 additions and 0 deletions
  1. 7 0
      desktop/core/static/js/Source/CCS/CCS.JFrame.js

+ 7 - 0
desktop/core/static/js/Source/CCS/CCS.JFrame.js

@@ -390,6 +390,13 @@ CCS.JFrame = new Class({
 		if (this.options.evaluateJs && content.js) $exec(content.js);
 		if (this.options.evaluateJs && content.js) $exec(content.js);
 		this.applyDelegates(target);
 		this.applyDelegates(target);
 		this.applyFilters(target, content, behavior || this.behavior);
 		this.applyFilters(target, content, behavior || this.behavior);
+		if (Browser.Engine.webkit) {
+				var width = target.style.width;
+				target.setStyle('width', '99%');
+				(function() {
+					target.style.width = width;
+				}).delay(1);
+		}
 	},
 	},
 
 
 	resize: function(x, y){
 	resize: function(x, y){