Kirill
October 20, 2016, 2:27pm
1
Hello,
I have a small problem with resizer and the sidebar.
After i change sidebars width with resizer the toggle stops to work.
snippet: http://webix.com/snippet/66b2280d
P.S somehow toogle event doesnt work in snippet by default but works local.
It’s unexpected behavior. I can’t confirm a bug yet, but we will evaluate it.
For now, please consider the following structure:
webix.ui({
container:"sideBarTabelle",
rows:[
sideBarTool,
{ cols:[
sidebar,
{ view:"resizer"},
tabelleTabView
]}
]
});
Finally, it’s not a bug but a layout feature. To avoid any issues, you need to adjust the width of the toolbar/sidebar to the parent layout (width = 0
will do the trick ):
webix.attachEvent("onLayoutResize", function(cells){
if(cells[0] == $$("sbLayout")){
$$("sbLayout").config.width = 0;
$$("sbToolbar").config.width = 0;
$$("sbLayout").resize();
}
});
http://webix.com/snippet/084dcaa2