JulioWar / jw-bootstrap-switch-ng2

Bootstrap Switch for Angular 2+
https://juliowar.github.io/jw-bootstrap-switch-ng2/
MIT License
43 stars 14 forks source link

Problem with the Bootstrap Collapse #18

Open FelipeCorso opened 6 years ago

FelipeCorso commented 6 years ago

@JulioWar, I found a problem using the switch with accordion panels, if the panel is rendered closed (class = "collapse in") the switch can not calculate the size correctly. If the panel is expanded (class = "collapse"), the situation does not occur. Do you know if I'm doing something wrong? I created a repository to simulate the situation https://github.com/FelipeCorso/jw-bootstrap-switch-ng2 The workaround is always bring the panels expanded, but the PO already complained hehehe. image image

JulioWar commented 6 years ago

Hi @FelipeCorso

This issue is related with the this issue #2. But i am going to try something later to solve that problem. I'am going to try to calculate the width of the switch with the length of the labels

FelipeCorso commented 6 years ago

Nice!

I'll use this [switch-handle-width]="60" to solve my problem.

Zabudska-Yuliia commented 5 years ago

Hey, @JulioWar do you have any updates? It would be really great to have a fix. Thanks a lot for such useful lib :)

JulioWar commented 5 years ago

Hello @Zabudska-Yuliia, Thanks for using this library. I'm little bussy this month, but I will do my best to keep you up to date. Any Pull Request is going to be appreciated 😃

I will try to see this with more detail on the weekend.