mirror of
https://github.com/zhigang1992/bootstrap-tokenfield.git
synced 2026-01-12 17:12:44 +08:00
Fix tokens drop to the next line
This commit is contained in:
2
dist/bootstrap-tokenfield.js
vendored
2
dist/bootstrap-tokenfield.js
vendored
@@ -898,7 +898,7 @@
|
||||
if (this.textDirection === 'rtl') {
|
||||
return this.$input.width( this.$input.offset().left + this.$input.outerWidth() - this.$wrapper.offset().left - parseInt(this.$wrapper.css('padding-left'), 10) - inputPadding - 1 )
|
||||
}
|
||||
this.$input.width( this.$wrapper.offset().left + this.$wrapper.width() + parseInt(this.$wrapper.css('padding-left'), 10) - this.$input.offset().left - inputPadding )
|
||||
this.$input.width( this.$wrapper.offset().left + this.$wrapper.width() + parseInt(this.$wrapper.css('padding-left'), 10) - this.$input.offset().left - inputPadding - 1 )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
js/bootstrap-tokenfield.js
vendored
2
js/bootstrap-tokenfield.js
vendored
@@ -898,7 +898,7 @@
|
||||
if (this.textDirection === 'rtl') {
|
||||
return this.$input.width( this.$input.offset().left + this.$input.outerWidth() - this.$wrapper.offset().left - parseInt(this.$wrapper.css('padding-left'), 10) - inputPadding - 1 )
|
||||
}
|
||||
this.$input.width( this.$wrapper.offset().left + this.$wrapper.width() + parseInt(this.$wrapper.css('padding-left'), 10) - this.$input.offset().left - inputPadding )
|
||||
this.$input.width( this.$wrapper.offset().left + this.$wrapper.width() + parseInt(this.$wrapper.css('padding-left'), 10) - this.$input.offset().left - inputPadding - 1 )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user