-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drag problem in sub-component #4
Comments
Sorry for the late reply. I think you use vue-window inside a non-static positioned element, right? Anyway, I cannot inspect it without any reproduction code. |
yes, the component is dynamically created only after the route path is accessed. |
Hello. ) |
Thank you for the jsfiddle. |
Thank you. |
http://jsfiddle.net/xqth7y6s/3/ |
I'm having same issue as mentioned by @pkuwwt 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. |
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"
The text was updated successfully, but these errors were encountered: