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

Top/Left not being respected #15

Open
ssshake opened this issue Nov 7, 2018 · 7 comments
Open

Top/Left not being respected #15

ssshake opened this issue Nov 7, 2018 · 7 comments
Assignees

Comments

@ssshake
Copy link

ssshake commented Nov 7, 2018

I can't seem to use top and left in the props, only position hint which I dont fully understand and dont think I want.

I can modify the prop directly via a $ref, then of course vue complains about modifying the prop. But when I do this the window does reposition.

My goal is to be able to set initial window position on load, then, on move, save the position to local storage so that it can be restored on new page load.

image

@michitaro michitaro self-assigned this Nov 8, 2018
@alekstar79
Copy link

I have exactly the same problem... but apparently, nothing has changed since then in this matter!

@michitaro
Copy link
Owner

Could you provide a minimal repository that reproduce the situation?

@alekstar79
Copy link

Could you provide a minimal repository that reproduce the situation?

I can not give a link to the real project, here provided a problematic component, of course the most simplified, but emulating the problem. For the test, you can simply connect the component to any the most basic vue application and try to call it. When working the component is all right, the positioning is synchronized and even at the end the coordinates can be stored somewhere, for example in a local storage. The problem is that when you mount a component, the specified coordinates are not applied. It seems to me that this problem should manifest itself on any instance of the vue-window component.
In your examples, it seems there is a positioning of the component using coordinates, but it is not clear how it works. Coordinates are set as null, there are no parameters, no code, but the component is positioned somehow. I will be glad for any help or hint in this matter.

@michitaro
Copy link
Owner

Thanks. I’ll inspect it.

michitaro added a commit that referenced this issue May 5, 2019
@michitaro
Copy link
Owner

The problem will be solved on @2.4.2.
@alekstar79 I hope your sample works with the new vue-menu.

@clemsos
Copy link

clemsos commented Sep 24, 2019

hey @michitaro will v2.4.2 be released?

@ra79sta
Copy link

ra79sta commented Aug 25, 2020

Can someone help me to implement minimize and maximize option in this library. Thank you
I see that someone did it..

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

5 participants