-
-
Notifications
You must be signed in to change notification settings - Fork 69
Position/Alignment of movable box #28
Comments
@contd I have the same issue, did you find the reason? |
Parent element should has |
@probil i have also encountered this issue. Attached below is the screenshots |
@lynmije try to play with margin-top of your container and position:relative/absolute; |
Hi, |
@ibadass It depends on how you've implemented that. 🤔 If you have few related Moveable instances in one place (see screenshot of contd about) you can have just one parent with I don't think CSS framework is an issue - you can always add one more wrapper with I mean <div class="framework-specific-class">
<Movable />
</div> can be <div class="framework-specific-class">
<div class="moveable-wrapper"> <!-- class with position: relative -->
<Movable />
</div>
</div> |
@probil Thank you for your answer, I understand. |
@ibadass You need to pass container ref as a prop to <div class="container" ref="container"> <!-- here -->
<Moveable
class="moveable"
v-model="row.key"
v-bind="moveable"
:container="$refs.container" <!-- here -->
@drag="handleDrag"
@resize="handleResize"
@scale="handleScale"
@rotate="handleRotate"
@warp="handleWarp"
v-for="(row, index) in rows"
:key="index"
>
<span>Vue Moveable</span>
</Moveable>
</div> https://codesandbox.io/s/vue-material-also-works-on-the-right-side-j5psx |
I think this should help other guys (like @contd ) as well |
@probil Thanks, it works great ! |
@ibadass I saw that. It's because you are using one |
@probil Thank you ! It's almost perfect ! |
I had the same issue and added position:relative like suggested above. Not using vue material though. Just trying to get the bounding controls to show up around my images on load. Currently the bounding controls only surround the image like I want, once I click on the image. |
Is the issue still relevant? 🤔 |
same as #86 issue |
@probil could you update moveable dependency to renovate bot also has a PR for this: #87 Edit: tested and it seems to work fine on the latest version |
@andreasvirkus sure |
@andreasvirkus Closing because of inactivity. Create a new issue if you have any other questions / issues |
When I setup this to work with a list of image thumbnails on my page, the movable blue box is below the images. Attached is a screenshot of what it looks like.
The text was updated successfully, but these errors were encountered: