jw-bootstrap-switch-ng2 icon indicating copy to clipboard operation
jw-bootstrap-switch-ng2 copied to clipboard

Problem with the Bootstrap Collapse

Open FelipeCorso opened this issue 7 years ago • 4 comments

@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

FelipeCorso avatar Oct 18 '17 18:10 FelipeCorso

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

JulioWar avatar Oct 18 '17 19:10 JulioWar

Nice!

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

FelipeCorso avatar Oct 18 '17 19:10 FelipeCorso

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

Zabudska-Yuliia avatar Mar 12 '19 11:03 Zabudska-Yuliia

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.

JulioWar avatar Mar 12 '19 13:03 JulioWar