forked from Wavyzz/dolibarr
Start to work on new generation combo box.
This commit is contained in:
@@ -1912,7 +1912,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
if (this.opts.width === "off") {
|
||||
return null;
|
||||
} else if (this.opts.width === "element"){
|
||||
return this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px';
|
||||
return this.opts.element.outerWidth(false) === 0 ? 'auto' : 20+this.opts.element.outerWidth(false) + 'px';
|
||||
} else if (this.opts.width === "copy" || this.opts.width === "resolve") {
|
||||
// check if there is inline style on the element that contains width
|
||||
style = this.opts.element.attr('style');
|
||||
@@ -1933,7 +1933,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
if (style.indexOf("%") > 0) return style;
|
||||
|
||||
// finally, fallback on the calculated width of the element
|
||||
return (this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px');
|
||||
return (this.opts.element.outerWidth(false) === 0 ? 'auto' : 20+this.opts.element.outerWidth(false) + 'px');
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user