X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/Element.scroll-more.html diff --git a/docs/source/Element.scroll-more.html b/docs/source/Element.scroll-more.html index 4f91a4e9..0d54fd66 100644 --- a/docs/source/Element.scroll-more.html +++ b/docs/source/Element.scroll-more.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-/**
+
+
+      
+  The source code
+    
+    
+
+
+    
/**
  * @class Ext.Element
  */
 Ext.Element.addMethods({
@@ -24,14 +19,16 @@ Ext.Element.addMethods({
      */
     scrollTo : function(side, value, animate){
         var top = /top/i.test(side), //check if we're scrolling top or left
-            prop = 'scroll' + (top ? 'Left' : 'Top'), // if scrolling top, we need to grab scrollLeft, if left, scrollTop
-            me = this,
-            dom = me.dom;
+        	me = this,
+        	dom = me.dom,
+            prop;
         if (!animate || !me.anim) {
+            prop = 'scroll' + (top ? 'Top' : 'Left'), // just setting the value, so grab the direction
             dom[prop] = value;
-        } else {
+        }else{
+            prop = 'scroll' + (top ? 'Left' : 'Top'), // if scrolling top, we need to grab scrollLeft, if left, scrollTop
             me.anim({scroll: {to: top ? [dom[prop], value] : [value, dom[prop]]}},
-                     me.preanim(arguments, 2), 'scroll');
+            		 me.preanim(arguments, 2), 'scroll');
         }
         return me;
     },
@@ -114,6 +111,6 @@ Ext.Element.addMethods({
          }
          return scrolled;
     }
-});
- +});
+ \ No newline at end of file