-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Parent padding problem #68
Comments
The bug is actually existing in react-draggable. I added the issue there also. |
@Nauss thanks!! |
Why would you like to remove the dependency ? It looks like react-draggable has improved itself a lot since your fork. |
@Nauss Hmmm...That's exactly right.I'll update forked react-draggable. |
|
|
@kudlajz Fixed by @5.0.3 🙏 |
Could you please reopen if you need. |
I am still having this issue, with bounds='parent' and setting the height to a % value via updateSize. The re sizeable takes the height of the root not parent element |
@Matt95 Could you please provide reproduced project in webpackbin(https://www.webpackbin.com/bins/-Ku4nRhImIfnt9N08lGu) and open new issue? |
@bokuweb Thank you for this good lib. I have a problem with paddings here, it is seems the padding no more in consideration !! |
Using
bounds = 'parent'
and setting bothpadding-left
andpadding-right
on the parent makes the right drag limit wrong (it looks like itspadding-left
+padding-right
).Reproducing the bug on the demo is easy, just open the dev tools and set the padding (left and right) to 100px.
Setting only the left padding 'works' (in this case, the right padding could not be set and is the same as left...).
The same thing happens on
padding-top
andpadding-bottom
.Maybe I missed something ?
The text was updated successfully, but these errors were encountered: