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

Vertical positioning doesn't take margins into account #106

Open
neilb opened this issue Jun 7, 2013 · 0 comments
Open

Vertical positioning doesn't take margins into account #106

neilb opened this issue Jun 7, 2013 · 0 comments

Comments

@neilb
Copy link

neilb commented Jun 7, 2013

If guiders are attached to elements that are in an element with a top margin, then the vertical position of the guiders is wrong by the amount of the margin.

For example, if I have the following structure:

body -> div.content -> table -> various elements with guiders

The div.content has a relatively large margin-top, and the guiders are all off-position by the size of that margin. I've confirmed this by "fixing" it for myself with the following hack:

top -= ($("div.content").outerHeight(true) - $("div.content").outerHeight(false));

But that's not a portable solution :-)

This is true (ie broken) on Firefox 21, Chrome 28, Safari 6.0.5, IE 10, and I expect on earlier versions of IE as well.

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

No branches or pull requests

1 participant