vue-window
vue-window copied to clipboard
Drag problem in sub-component
I tried vue-window in iview-admin as a sub-component, i.e. associate it to a vue-router path. However, there is a problem.
When I drag the window, the start-drag-position is not the position I start clicking. In specific, offsetx = width(left-panel), offsety = height(top-menu-bar). So that the window always jump toward bottom-right when I start dragging.
I am sorry I cannt reproduce a minimal example for now. Do any one know where is the problem?
BTW, the version of vue-window I installed by npm is "^1.8.1"
Sorry for the late reply.
I think you use vue-window inside a non-static positioned element, right? The problem is caused by something around that.
Anyway, I cannot inspect it without any reproduction code.
yes, the component is dynamically created only after the route path is accessed.
Hello. ) Is this all about? http://jsfiddle.net/xqth7y6s/
Thank you for the jsfiddle. I'll inspect it.
Thank you. Is it possible to add a theme management for 'title' ?
http://jsfiddle.net/xqth7y6s/3/ Can be otherwise. But then the top toolbar can cover the window title.
I'm having same issue as mentioned by @pkuwwt Works fine when use directly on App.vue
While trying to use it inside a child component or as nested child component in vue, when I try to drag it the start-drag-position always jump toward bottom-right when I start dragging.