movable window position issue

https://snippet.webix.com/fbk4y0dz
in this scenario I have a movable window with custom position.
if I move the window and then add a view into the windows body or even just resize the browser, the windows size logic gets broken.
currently I set move:false to prevent such behavior.
is there a more suitable workaround?

Tagged:

Comments

  • found workaround

      on:{
        onViewMoveEnd:function(){
          this.config.height=this.$height;
          this.config.width=this.$width;
        }
      }
    
  • Hi,

    This is an expected behaviour. You are setting window sizes in the position function which is reset after view moving, as after that a widget has a custom position.

    So the above case can be solved by defining width and height in the window configuration: https://snippet.webix.com/0a18oz4j

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!