-
Notifications
You must be signed in to change notification settings - Fork 196
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
imgAreaSelect doesn't recognized padding #45
Comments
Solution: Change the section that is titled /* Get image dimensions */ (lines 273-274 in 3817ae0) to:
|
Mithgol
added a commit
to Mithgol/imgareaselect
that referenced
this issue
Aug 1, 2013
Should fix odyniec#45 if @Huji is correct.
Thanks. Will do next time. By the way, I tried it in two different browsers and seem like it solves the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the image in question has a border and padding, the area that can be selected extends to the border, not just over the image. In other words, areas OUTSIDE the image are selectable.
How to test it:
Go to http://odyniec.net/projects/imgareaselect/examples.html and scroll to the bottom to see the duck example. Then in console run this:
$('#duck').css('border:1px solid red').css('padding', '4px');
You will see the grey box extends to the border, and goes beyond the image.
The text was updated successfully, but these errors were encountered: