This sample code causes an error. There’s some internal index to the visible page of the multiview that goes out of bounds?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="webix.css" type="text/css">
<script src="
webix.js"></script>
</head>
<body id="app" class="webixapp">
<script>
webix.ready(function(){
// A simple application with just one multi vies that contains two pages.
var ui = {
container: 'app',
type: 'wide',
cols: [{
id: 'multiview',
animate: false,
cells: [{ template: 'Page 1' }, { template: 'Page 2' }]
}]
};
// Create the application
webix.ui(ui);
// Show the second view.
var views = $$('multiview').getChildViews();
views[1].show();
// Try to remove the first view.
$$('multiview').removeView(views[0]);
// This causes uncaught TypeError: Cannot read property '$getSize' of undefined
// webix.js:1000 webix.protoUI.$getSize
// webix.js:160 webix.protoUI.$getSize
// webix.js:169 webix.protoUI.$getSize
// webix.js:156 webix.protoUI.resizeChildren
// webix.js:172 webix.protoUI.resizeChildren
// webix.js:156 webix.protoUI.resizeChildren
// webix.js:155 webix.protoUI.removeViewwebix_test.html:27 (anonymous function)
// webix.js:37 (anonymous function)
// webix.js:16 (anonymous function)
});
</script>
</body>
</html>