-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Bug Report or Feature Request (mark with an x
)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Versions.
2.4.10
Repro steps.
- Create a switch with this options:
<bSwitch
[switch-base-class]="'bootstrap-switch'"
[switch-wrapper-class]="'bootstrap-switch-wrapper'"
[switch-off-text]="'Excluir'"
[switch-on-text]="'Incluir'"
[switch-size]="'small'"
[switch-disabled]="false"
[switch-readonly]="false"
[switch-animate]="true"
[switch-inverse]="false"
[switch-handle-width]="60"
[ngModel]="inc"
(onChangeState)="modifyFilterInclusive($event, fld)">
The log given by the failure.
None
Desired functionality.
Adding 2px to the width is enough to show the border, example:
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!
Metadata
Metadata
Assignees
Labels
No labels