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

what is wrong

Open ickbinhier opened this issue 8 years ago • 2 comments

what is wrong

version 3.3.3 shows this nein1

version 3.3.4 shows this nein2

ickbinhier avatar Feb 27 '17 16:02 ickbinhier

3.3.4 has an issue for our project too. The change to display: table-cell and vertical-align: middle on the handles and label meant that even though the width was being calculated correctly, it would not apply in the browser because table cells can shrink.

Our workaround was to add this to our CSS:

.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-label {
	display: inline-block;
	vertical-align: baseline;
}

jameshoward avatar Aug 02 '17 09:08 jameshoward

@jameshoward Thank you. CSS fix worked for me.

elliottbenzle avatar Apr 22 '20 01:04 elliottbenzle