question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bound='parent' option in flex box

See original GitHub issue

in this case : <div style="display: flex;flex-direction: 'column'; width: 800px; height: 600px"> <div style='width: 300px' id='leftside'></div> <div style='flex:1'> <Draggble bounds='parent'><div>bound drag</div></Draggble> </div> </div>

bound option seems work fine to lock the draggable div in 800*600 area, but offset left was ignore. i mean draggable div was not suppposed to be able to dragged to x=0px , is was supposed to 300px

is there anyone help me? thanks very much

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:10
  • Comments:6

github_iconTop GitHub Comments

7reactions
zhaozeqcommented, Apr 8, 2019

set position at parent node will resolve this problem

0reactions
WTomoharucommented, Aug 20, 2021

Hello! I have this issue too. Maybe, I can fix this issue. I will try to fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bound='parent' option in flex box · Issue #213 · react ... - GitHub
bound='parent' option in flex box #213 ... bound option seems work fine to lock the draggable div in 800*600 area, but offset left...
Read more >
A Complete Guide to Flexbox | CSS-Tricks
This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex ...
Read more >
Basic concepts of flexbox - CSS: Cascading Style Sheets | MDN
The Flexible Box Module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer ......
Read more >
Flexbox | Webflow University
Once you change the layout setting of a parent element to flex, you'll have a number of layout options for both the flex...
Read more >
Flex - Bootstrap
Apply display utilities to create a flexbox container and transform direct children ... Choose from the same options as align-items : start ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found