Skip to content

Right border not showing #25

@martinmanzo

Description

@martinmanzo

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)">

and this is the result:
image

The log given by the failure.

None

Desired functionality.

Adding 2px to the width is enough to show the border, example:
image

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions