PDA

View Full Version : Changing dock of toolbar creates bugs.



parth.suthar
11 Oct 2011, 1:48 AM
Whenever i am changing dock of toolbar, one div is not removed. That div is creating problems.

Let we one toolbar




var toolbar = new Iconbar({
bgColor:'red',
items:[
{
icon:'icons/White/pen_white.png',
id:'btn2',
handler:function(){
this.setLayout(new Ext.layout.VBoxLayout({align:'start'})); this.setDocked('left',true);
this.width = "46";
this.getEl().down(".x-layout-box-inner").remove();
/* I have to remove one div that has class x-layout-box-inner,because it is created again by sencha,having same class and all the items are placed in that new generated div leaving old div empty.*/
}
},
{
id:'btn3',
icon:'icons/White/Magic_pen_white.png',
},
{
icon:'icons/White/shape_white.png',
id:'btn4',
}
]


});




So, whenever we need to change the dock of toolbar, we need to remove that div manually. It is not possible and recommended. So ,i hope that in next version it will be solved.