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

Zoomed in Chrome problem #547

Open
Darkry opened this issue Feb 27, 2016 · 4 comments
Open

Zoomed in Chrome problem #547

Darkry opened this issue Feb 27, 2016 · 4 comments

Comments

@Darkry
Copy link

Darkry commented Feb 27, 2016

When I zoom in (using control + plus key, eg. to 175%) in Google Crome and then reload my page with bootstrap switcher, the switcher looks like this:

I need to add that the issue only appears when I use custom text labels (as seen in the screenshots).

nahled
nahled2

@rebolavo
Copy link

I have the same issue (only with google chrome)

@charettes
Copy link

Ditto, it seems to also happen with zoom 0% with some resolutions.

@thawkins
Copy link

Im having the same problem

chrome
CSS Page Width:1905
CSS Page Height:879

That is inner viewport dimensions, ie inside scrollbars etc.

note, manually editing width of "offHandle" block to be one pixel narrower fixes the problem.

it could be getting a fractional value for the width calculation and rounding up rather than down.

changing line 443
from

    this.$container.width((this._handleWidth * 2) + this._labelWidth);

to

    this.$container.width((this._handleWidth * 2) + this._labelWidth+1);

seems to fix the problem, with no apparent visual impact.

@KTrentLR
Copy link

KTrentLR commented May 7, 2016

There's also a fix noted in #469 with new function text.

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

5 participants