X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/530ef4b6c5b943cfa68b779d11cf7de29aa878bf..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/examples/ux/DataViewTransition.js?ds=sidebyside diff --git a/examples/ux/DataViewTransition.js b/examples/ux/DataViewTransition.js index 097232a9..b2544d63 100644 --- a/examples/ux/DataViewTransition.js +++ b/examples/ux/DataViewTransition.js @@ -1,8 +1,8 @@ /*! - * Ext JS Library 3.2.1 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license */ /** * @class Ext.ux.DataViewTransition @@ -140,12 +140,12 @@ Ext.ux.DataViewTransition = Ext.extend(Object, { if (el.getStyle('position') != 'absolute') { elCache[id].applyStyles({ position: 'absolute', - left : oldPos.left, - top : oldPos.top, + left : oldPos.left + "px", + top : oldPos.top + "px", //we set the width here to make ListViews work correctly. This is not needed for DataViews - width : el.getWidth(!Ext.isIE), - height : el.getHeight(!Ext.isIE) + width : el.getWidth(!Ext.isIE || Ext.isStrict), + height : el.getHeight(!Ext.isIE || Ext.isStrict) }); } }); @@ -181,8 +181,8 @@ Ext.ux.DataViewTransition = Ext.extend(Object, { if (fraction >= 1) { for (var id in newPositions) { Ext.fly(dataviewID + '-' + id).applyStyles({ - top : newPositions[id].top, - left: newPositions[id].left + top : newPositions[id].top + "px", + left: newPositions[id].left + "px" }); } @@ -204,9 +204,9 @@ Ext.ux.DataViewTransition = Ext.extend(Object, { midLeft = oldLeft > newLeft ? oldLeft - diffLeft : oldLeft + diffLeft; Ext.fly(dataviewID + '-' + id).applyStyles({ - top : midTop + 'px', - left: midLeft + 'px' - }); + top : midTop + "px", + left: midLeft + "px" + }); } } }; @@ -222,8 +222,8 @@ Ext.ux.DataViewTransition = Ext.extend(Object, { //show new items Ext.iterate(added, function(id, item) { Ext.fly(this.dataviewID + '-' + item.get(this.idProperty)).applyStyles({ - top : newPositions[id].top, - left: newPositions[id].left + top : newPositions[id].top + "px", + left: newPositions[id].left + "px" }).fadeIn({ remove : false, duration: duration / 1000