Browse Source

HUE-232. FitText is broken in IE8; disable, fix and then re-enable

Disabling for IE8 for now.
Aaron Newton 15 years ago
parent
commit
f9f5c6f6ab
1 changed files with 17 additions and 19 deletions
  1. 17 19
      desktop/core/static/js/Source/BehaviorFilters/Behavior.FitText.js

+ 17 - 19
desktop/core/static/js/Source/BehaviorFilters/Behavior.FitText.js

@@ -24,6 +24,7 @@ script: Behavior.FitText.js
 */
 */
 
 
 (function(){
 (function(){
+	if (Browser.Engine.trident) return; //disable this for now as it's broken IE; bug #
 	/*
 	/*
 		implements the FitText filter on an element; attaches to Behavior for events on resize
 		implements the FitText filter on an element; attaches to Behavior for events on resize
 		filter - the Behavior filter instance
 		filter - the Behavior filter instance
@@ -115,24 +116,21 @@ script: Behavior.FitText.js
 
 
 	});
 	});
 
 
-        Behavior.addGlobalPlugin('HtmlTable', 'FitTextResize', function(element, methods) {
-                if(element.hasClass('resizable')) {
-                        htmlTable = element.retrieve('HtmlTable');
-                        htmlTable.addEvent('columnResize', function() {
-                                if(element.hasDataFilter('FitText-Children')) {
-                                        var selector = element.get('data', 'fit-text');
-                                        element.getElements(selector).each(function(el){
-                                                el.retrieve('FitText').fit();
-                                        }, this);
-                                }
-                                element.getElements('[data-filters*=FitText]').each(function(el) {
-                                        el.retrieve('FitText').fit();
-                                });
-                        });
-                }
-        });
-
-        
-
+	Behavior.addGlobalPlugin('HtmlTable', 'FitTextResize', function(element, methods) {
+		if(element.hasClass('resizable')) {
+			htmlTable = element.retrieve('HtmlTable');
+			htmlTable.addEvent('columnResize', function() {
+				if(element.hasDataFilter('FitText-Children')) {
+					var selector = element.get('data', 'fit-text');
+					element.getElements(selector).each(function(el){
+						el.retrieve('FitText').fit();
+					}, this);
+				}
+				element.getElements('[data-filters*=FitText]').each(function(el) {
+					el.retrieve('FitText').fit();
+				});
+			});
+		}
+	});
 
 
 })();
 })();