1
0
mirror of synced 2024-11-29 16:16:02 +03:00

Add box-sizing to another area

This closes https://github.com/select2/select2/issues/3029.
This commit is contained in:
Kevin Brown 2015-02-13 23:37:29 -05:00
parent 72e5c2a50d
commit ef5c88a6f6
9 changed files with 25 additions and 3 deletions

View File

@ -160,6 +160,7 @@
border-radius: 4px; border-radius: 4px;
cursor: text; } cursor: text; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { .select2-container--default .select2-selection--multiple .select2-selection__rendered {
box-sizing: border-box;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0 5px; padding: 0 5px;

File diff suppressed because one or more lines are too long

View File

@ -4323,6 +4323,8 @@ define('select2/core',[
attributes: true, attributes: true,
subtree: false subtree: false
}); });
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
} }
}; };
@ -4585,6 +4587,9 @@ define('select2/core',[
if (this._observer != null) { if (this._observer != null) {
this._observer.disconnect(); this._observer.disconnect();
this._observer = null; this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
} }
this._sync = null; this._sync = null;

View File

@ -4323,6 +4323,8 @@ define('select2/core',[
attributes: true, attributes: true,
subtree: false subtree: false
}); });
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
} }
}; };
@ -4585,6 +4587,9 @@ define('select2/core',[
if (this._observer != null) { if (this._observer != null) {
this._observer.disconnect(); this._observer.disconnect();
this._observer = null; this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
} }
this._sync = null; this._sync = null;

View File

@ -4762,6 +4762,8 @@ define('select2/core',[
attributes: true, attributes: true,
subtree: false subtree: false
}); });
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
} }
}; };
@ -5024,6 +5026,9 @@ define('select2/core',[
if (this._observer != null) { if (this._observer != null) {
this._observer.disconnect(); this._observer.disconnect();
this._observer = null; this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
} }
this._sync = null; this._sync = null;

File diff suppressed because one or more lines are too long

5
dist/js/select2.js vendored
View File

@ -4762,6 +4762,8 @@ define('select2/core',[
attributes: true, attributes: true,
subtree: false subtree: false
}); });
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
} }
}; };
@ -5024,6 +5026,9 @@ define('select2/core',[
if (this._observer != null) { if (this._observer != null) {
this._observer.disconnect(); this._observer.disconnect();
this._observer = null; this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
} }
this._sync = null; this._sync = null;

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@
cursor: text; cursor: text;
.select2-selection__rendered { .select2-selection__rendered {
box-sizing: border-box;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0 5px; padding: 0 5px;