Skip to content

Vertical positioning doesn't take margins into account #106

Description

@neilb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions