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

applying on a width height in % or bottom, right element in chrome #15

Open
zyll opened this issue Apr 9, 2013 · 3 comments
Open

applying on a width height in % or bottom, right element in chrome #15

zyll opened this issue Apr 9, 2013 · 3 comments
Labels

Comments

@zyll
Copy link

zyll commented Apr 9, 2013

Nice to see a not $ dragging thing, thanks 👍

  • Chrome (25) wont return getComputedStyle in px so draggabilly element will be reposition to top 0 on start dragging when they have a width: 100% style (important part is the "%").
  • Using bottom or right positioning will break the positioning in the same way.

Let me know if i'm confused or if you can't reproduce. I have no time at the moment to write a use case.

@desandro
Copy link
Owner

desandro commented Apr 9, 2013

Hey, thanks for the issue report!

Two separate issues, but they are related.

Here's an isolated test case for percentage positioning http://codepen.io/desandro/pen/Dkhbd

I'll need to fix both of these.

Add a 👍 reaction to this issue if you ran into this issue and would like to see it fixed.. Do not add +1 comments — They will be deleted.

@geekdenz
Copy link

I believe I have a fix for this! Ran into the issue as well, but googling didn't help. So, I went in and analysed what was happening.. Long story short, I will fork and do a pull request shortly.

geekdenz pushed a commit to geekdenz/draggabilly that referenced this issue Oct 20, 2015
@kuzvac
Copy link

kuzvac commented Dec 4, 2015

@geekdenz path works for me (c)
It's resolved issue with percentage positioning in webkit browsers.
Thank you @geekdenz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants