Skip to content
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

Open
pkuwwt opened this issue Apr 1, 2018 · 7 comments
Open

Drag problem in sub-component #4

pkuwwt opened this issue Apr 1, 2018 · 7 comments

Comments

@pkuwwt
Copy link

pkuwwt commented Apr 1, 2018

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"

@michitaro
Copy link
Owner

michitaro commented Apr 3, 2018

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.

@pkuwwt
Copy link
Author

pkuwwt commented Apr 3, 2018

yes, the component is dynamically created only after the route path is accessed.

@egorovd
Copy link

egorovd commented Aug 2, 2018

Hello. )
Is this all about?
http://jsfiddle.net/xqth7y6s/

@michitaro
Copy link
Owner

Thank you for the jsfiddle.
I'll inspect it.

@egorovd
Copy link

egorovd commented Aug 3, 2018

Thank you.
Is it possible to add a theme management for 'title' ?

@egorovd
Copy link

egorovd commented Aug 3, 2018

http://jsfiddle.net/xqth7y6s/3/
Can be otherwise.
But then the top toolbar can cover the window title.

@RabinMallick
Copy link

RabinMallick commented Aug 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants