Open martinmanzo opened 6 years ago
Hi @martinmanzo, I just wanna know why you are using the property switch-handle-width
.
Hi @JulioWar, thanks for the response. I had some Issues getting the switch to display correctly and turned into old issues to now if someone else had had the same problem and if there was a solution. I found this issue https://github.com/JulioWar/jw-bootstrap-switch-ng2/issues/2 and in an answer you state to try with that. I did it and the switch started to display correctly.
Ok, I understand. Can you please make the pull request I gonna take the time to test that on my side. Thanks
Sure, I'll do it in the next days. Thanks!
This is still an issue. Fix that @martinmanzo suggested seems to work. Why not upgrade it? This is by far the best switch toggle package out there (for Angular), and the missing right border is so...difficult to look at.
Hi @hashmed
This an issue that I can't reproduce and I don't know if I make this changes, others can be affected. people using this package that doesn't have this issue. That is the case for me. I have a demo site for this package here: https://juliowar.github.io/jw-bootstrap-switch-ng2/
Can you tell me if you see the issue there ?
Because that demo is based on the same code and on my side I don't see the issue
Thanks in advance for using my package 👍
@JulioWar Oh, I didn't know that was the case. Applying the "fix" might do more damage then, for sure.
I do not see the issue on demo site, border is there. I'm now suspecting that some other css files might be interfering with it. I will let you know if I pinpoint the issue.
But your library is probably good as it is. :)
Bug Report or Feature Request (mark with an
x
)Versions.
2.4.10
Repro steps.
and this is the result:![image](https://user-images.githubusercontent.com/3625887/34951047-bae84a36-f9f3-11e7-952c-bbab2fffebd5.png)
The log given by the failure.
None
Desired functionality.
Adding 2px to the width is enough to show the border, example:![image](https://user-images.githubusercontent.com/3625887/34951102-eb41de18-f9f3-11e7-91da-d17e9a7be18a.png)
Mention any other details that might be useful.
By looking at the source code the change should be made to this line: https://github.com/JulioWar/jw-bootstrap-switch-ng2/blob/master/src/directive.ts#L32
<div class="{{ getWrapperClasses() }}" [style.width]=" (handleWidth + labelWidth ) +'px'">
and transform it into:<div class="{{ getWrapperClasses() }}" [style.width]=" (handleWidth + labelWidth + 2) +'px'">
I could do a pull request if you need.
Thanks!