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

1.4.0: element has border-bottom: 2px, tether fails to include it in translateY height calculation #243

Open
lkraav opened this issue Feb 4, 2017 · 0 comments

Comments

@lkraav
Copy link

lkraav commented Feb 4, 2017

It's a stack of 3 bars at the top of the viewport.

HEIGHTS

  • adminbar: 32px
  • target: 55px
  • element

BAD TETHER RESULT
transform: translateX(0px) translateY(85px) translateZ(0px)

CORRECT RESULT
transform: translateX(0px) translateY(87px) translateZ(0px)

Is this a Tether bug or a general box model issue I'm missing?

var options = {
    element: "#menu-subsidiary",
    target: getTetherTarget(),
    attachment: "top left",
    targetAttachment: "bottom left",
    targetModifier: "visible",
    constraints: [{
        to: "window",
        pin: true
    }],
    optimizations: {
        gpu: true
    }
};

var tetherMenuSubsidiary = new Tether( options );
@lkraav lkraav changed the title 1.4.0: element has border-bottom: 2px, tether fails to include it in element height calculation 1.4.0: element has border-bottom: 2px, tether fails to include it in translateY height calculation Feb 4, 2017
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