Skip to content

Columns are miss-aligned when zoomin in/out with the browser #88

@dalvarezmartinez1

Description

@dalvarezmartinez1

Reproducible in Chrome

Everything is pretty standard except cells have a right border (to check if columns become miss-aligned)

    table.dataTable thead th,
    table.dataTable tbody td {
      border-right: 1px solid red;
    }

When zooming in with the browser, for example at 150%, the borders start to become miss-aligned, the more to the right, the worse it becomes. Zooming out at 80% causes the same issue. https://jsfiddle.net/dalvarezmartinez1/jo6vnd1c/12/

Note, the problem is not reproducible, if instead of borders, we're using background-color to observe the miss-alignment

    table.dataTable thead th:nth-child(odd) {
      background-color:red;
    }
    table.dataTable tbody td:nth-child(odd) {
       background-color:blue;
    }

Not reproducible with background color instead of border: https://jsfiddle.net/dalvarezmartinez1/jo6vnd1c/19/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions