1
0
mirror of synced 2025-02-21 14:33:15 +03:00

allow a custom function for computing the width. fixes #252

This commit is contained in:
Igor Vaynberg 2012-07-20 21:24:34 +03:00
parent 3fc1bc6f35
commit b672d760ac

View File

@ -1151,6 +1151,8 @@
} }
return null; return null;
} else if ($.isFunction(this.opts.width)) {
return this.opts.width();
} else { } else {
return this.opts.width; return this.opts.width;
} }