Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

stick to parent size? #37

Closed
stefanaz opened this issue Oct 9, 2019 · 4 comments
Closed

stick to parent size? #37

stefanaz opened this issue Oct 9, 2019 · 4 comments
Labels
question 🤔 Further information is requested
Milestone

Comments

@stefanaz
Copy link

stefanaz commented Oct 9, 2019

Is it possible to limit element movements by a parent container size?

@probil probil added the question 🤔 Further information is requested label Oct 15, 2019
@stefanaz
Copy link
Author

stefanaz commented Oct 16, 2019

@probil thanks for pushing that on. I have found bounds property on the original moveable documentation site. https://daybrush.com/moveable/release/latest/doc/Moveable.html#bounds
But it seems to not be yet ported ? Or I am using that not correctly? Could you help please?

I try like that:

<Moveable
    .....
    :bounds="{ left: 220, right: 1000, top: 0, bottom: 1000}">
    .....
</Moveable>

@probil
Copy link
Owner

probil commented Oct 16, 2019

Hi @stefanaz 👋
Thanks for raising the question. vue-moveable uses older version of moveable and as result some functionality is missing.

There is an issue to upgrade. PR is appreciated

@probil
Copy link
Owner

probil commented Oct 17, 2019

Directly related to #31

@probil probil added this to the v1.0.0 milestone Oct 22, 2019
@probil
Copy link
Owner

probil commented Oct 22, 2019

Released as part of v1.0.0

@probil probil closed this as completed Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question 🤔 Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants