Error trying to delete child view from multiview

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>

Better formatting: http://pastebin.com/PGKH7msB

I can confirm the issue ( removing views from multiview doesn’t work correctly )

Fix will be included in the next minor build.

Any news about this problem? I’m having the same problem in my application.

Hi @hilty,

It is fixed now, please check the following sample:

http://webix.com/snippet/a3c9ac8b