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

Bootstrap switch has css error when it in hidden div #422

Closed
dinhienhy opened this issue Jan 20, 2015 · 3 comments
Closed

Bootstrap switch has css error when it in hidden div #422

dinhienhy opened this issue Jan 20, 2015 · 3 comments
Assignees
Milestone

Comments

@dinhienhy
Copy link

Hi all,
I have a problem when i try to use bootstrap switch: Bootstrap switch has css error when it in hidden div.
Please visit bellow link to review this css error:
http://gyazo.com/7daef81950fd6a0c2186af103d737081

@LostCrew
Copy link
Member

@dinhienhy please provide a link where i can play around and investigate into the problem. thanks.

@LostCrew LostCrew self-assigned this Jan 21, 2015
@dinhienhy
Copy link
Author

Thanks for your comment. I have resolved it.
Caution:

  • I initted bootstrap switch first then added label

       //initialize bootstrapSwitch
        $(element).bootstrapSwitch({
        });
    
        // setting initial label
        $(element).bootstrapSwitch('labelText', value);
    

Reosolved:

  • I setted label when intted bootstrap switch

       //initialize bootstrapSwitch
        $(element).bootstrapSwitch({
            labelText: optionLabelText
        });
    

@LostCrew
Copy link
Member

@dinhienhy in 3.3.2 it should not happen anymore, even if the labelText is set after initialisation.

@LostCrew LostCrew removed the pending label Jan 25, 2015
@LostCrew LostCrew added this to the 3.3.2 milestone Jan 25, 2015
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

2 participants