3 dashboard3.slidetest = function (el,dir)
9 Roo.apply(dashboard3.slidetest.prototype, {
12 nel : false, // next el.
13 pel : false, // parent el.
18 // first tabcontent - needs overflow hidden..
20 this.pel = this.el.findParent('.tab-content', 3, true);
21 this.pel.setStyle('overflow', 'hidden');
22 var obox = this.pel.getBox(true,true);
25 var box = this.el.getBox();
31 width : box.width + 'px',
32 height: box.height+ 'px',
35 // need to fix the left/right....
36 var panes = this.pel.select('.tab-pane',true);
37 var ix = panes.indexOf(this.el);
41 this.nel = panes.item(ix+1);
42 var nbox = this.nel.getBox();
46 left : (box.width + obox.x + 50 ) + 'px',
48 width : box.width + 'px',
49 height: nbox.height+ 'px',
51 this.nel.addClass('active');
53 // now we need to animate the both boxes moving from box.width + obox.x + 50 --> obox.x
57 from : (box.width + obox.x + 50 ),
60 }, 0.5,function() { _t.completeSlide(); }, 'easeOut', 'run');
65 to : -1 * (box.width + 50 )
67 }, 0.5, false, 'easeOut', 'run');
72 completeSlide : function()
75 this.pel.setStyle('overflow', '');