Lines Matching defs:width

142             width: $template.width() - $template[0].clientWidth,
181 return element.outerWidth(false) - element.width();
339 return sizer.width();
1175 width = this.container.outerWidth(false),
1178 windowWidth = $window.width(),
1215 width = this.container.outerWidth(false);
1228 $dropdown.addClass('select2-drop-auto-width');
1229 $dropdown.css('width', '');
1230 // Add scrollbar width to dropdown if vertical scrollbar is present
1231 dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width);
1232 dropWidth > width ? width = dropWidth : dropWidth = width;
1236 this.container.removeClass('select2-drop-auto-width');
1255 width: width
1817 * Get the desired width for the container element. This is
1818 * derived first from option `width` passed to select2, then
1820 * falls back to the jQuery calculated element width.
1827 if (this.opts.width === "off") {
1829 } else if (this.opts.width === "element"){
1831 } else if (this.opts.width === "copy" || this.opts.width === "resolve") {
1832 // check if there is inline style on the element that contains width
1838 matches = attr.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);
1844 if (this.opts.width === "resolve") {
1845 // next check if css('width') can resolve a width that is percent based, this is sometimes possible
1847 style = this.opts.element.css('width');
1850 // finally, fallback on the calculated width of the element
1855 } else if ($.isFunction(this.opts.width)) {
1856 return this.opts.width();
1858 return this.opts.width;
1862 var width = resolveContainerWidth.call(this);
1863 if (width !== null) {
1864 this.container.css("width", width);
2629 this.search.width(10);
2634 this.search.width(10);
2790 // stretch the search box to full width of the container so as much of the placeholder is visible as possible
2792 this.search.width(maxWidth > 0 ? maxWidth : this.container.css("width"));
2794 this.search.val("").width(10);
2897 this.search.width(10);
2900 this.search.width(10);
2918 this.search.width(10);
3070 return this.selection.width() - getSideBorderPadding(this.search);
3082 maxWidth = this.selection.width();
3099 this.search.width(Math.floor(searchWidth));
3206 // collapse search field into 0 width so its container can be collapsed as well
3207 this.search.width(0);
3221 // since we collapsed the width in dragStarted, we resize it here
3313 width: "copy",