Skip to content

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

Description

@lkraav

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 );

Activity

  1. 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[/+] on Feb 4, 2017
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions