Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered #9351

Closed
@vladimir-barsuchenko

Description

@vladimir-barsuchenko

I use your latest Angular Material Release 1.1.0-rc.5.
And your official codepen.
Windows 10. Chrome Version 52.0.2743.116 m

When I resize a window or simply checkbox parent container. Label position is calculated wrong.
It seems like the trouble is in fractional numbers. And Chrome has issues with it.
Because if I increase width of checkbox container in 1px alignment is perfect.

I have no issues with latest Firefox.

md-checkbox.md-checked ._md-icon:after {
    box-sizing: border-box;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    left: 6.67px;
    top: 2.22px;
    display: table;
    width: 6.67px;
    height: 13.33px;
    border-width: 2px;
    border-style: solid;
    border-top: 0;
    border-left: 0;
    content: '';
}

capture

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions