ui.resize¶
webix.ui.
resize
([see official doc])¶webix.ui.resize helper.
Please look into the linked official documentation.
Referenced by¶
- helpers
each()
,fullScreen()
.
External references¶
Code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | webix.ui.resize = function(){
// check for virtual keyboard
if(webix.env.touch && ( webix.edit_open_time && (new Date())-webix.edit_open_time < 750 || webix._focus_time && (new Date())-webix._focus_time < 750)){
//workaround for android chrome bug with scrolling to the focused input if overflow:hidden on container
if(webix.env.isWebKit && document.activeElement){
var wactiv = webix.$$(document.activeElement);
if (wactiv && wactiv.getInputNode && document.activeElement.scrollIntoView){
document.activeElement.scrollIntoView();
return;
}
}
}
webix.UIManager.applyChanges();
webix.callEvent("onClick",[]);
if (!webix.ui.$freeze)
for (var i=resize.length - 1; i>=0; i--){
//remove destroyed views from resize list
if (resize[i].$destructed)
resize.splice(i,1);
else
resize[i].adjust();
}
};
|