Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    2
    Vote Rating
    0
    ross is on a distinguished road

      0  

    Default MSIE 7-8 (9 haven't tested): Ext.Element.setHeight throws exception

    MSIE 7-8 (9 haven't tested): Ext.Element.setHeight throws exception


    I don't know why, but in every my application MSIE throws Exception in Ext.Element.setHeight. Say "Invalid argument in ext-all-debug.js on line 3007, char 13" (ext 3.4.0).

    I'm using this hack named IHateMsie.js everywhere:

    Code:
    Ext.override(Ext.Element, {
        setHeight : function(height, animate){
            var me = this;
            height = me.adjustHeight(height);
            try{ // I hate MSIE
                !animate || !me.anim ?
                    me.dom.style.height = me.addUnits(height) :
                    me.anim({height : {to : height}}, me.preanim(arguments, 1));
            }
            catch(e){}
            return me;
        }
    });
    Hope helps friends.

  2. #2
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460
    Vote Rating
    0
    Mycoding is on a distinguished road

      0  

    Default


    I tested your code in IE 6 and IE 7 all works fine
    I tested in ExtJS 3.4
    Here is code
    Code:
    <html> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    	<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
    </head> 	
    <body scroll="no" id="docs">
      <script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script> 
      <script type="text/javascript" src="ext/ext-all-debug.js"></script> 
      <script>
    	Ext.override(Ext.Element, {
    		setHeight : function(height, animate){
    			var me = this;
    			height = me.adjustHeight(height);
    			try{ // I hate MSIE
    				!animate || !me.anim ?
    					me.dom.style.height = me.addUnits(height) :
    					me.anim({height : {to : height}}, me.preanim(arguments, 1));
    			}
    			catch(e){}
    			return me;
    		}
    	});
    
    
    	Ext.onReady(function(){
    		Ext.get('img_1').setHeight(400,true);
    	});
      </script>
    <img id="img_1" src="http://moc-081.ru/images/site_logo_large.png"/>
    </body>
    </html>

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar