Преглед на файлове

copy style attr from original element. fixes #1476

Igor Vaynberg преди 12 години
родител
ревизия
cdcdc98b55
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      select2.js

+ 1 - 0
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));