فهرست منبع

Fixed 'width' and 'containerCss' incompatibility. fixes #828

Igor Vaynberg 12 سال پیش
والد
کامیت
69d4e0896d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1470,7 +1470,7 @@ the specific language governing permissions and limitations under the Apache Lic
 
             var width = resolveContainerWidth.call(this);
             if (width !== null) {
-                this.container.attr("style", "width: "+width);
+                this.container.css({"style": "width: "+width});
             }
         }
     });