From cdcdc98b5583f08bdf6416a3f225cc1c509a13dc Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 3 Jul 2013 22:42:14 -0700 Subject: [PATCH] copy style attr from original element. fixes #1476 --- select2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/select2.js b/select2.js index 6130ff9b..84e67f22 100644 --- a/select2.js +++ b/select2.js @@ -678,6 +678,7 @@ the specific language governing permissions and limitations under the Apache Lic syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass); + this.container.attr("style", opts.element.attr("style")); this.container.css(evaluate(opts.containerCss)); this.container.addClass(evaluate(opts.containerCssClass));