1
0
mirror of synced 2024-11-29 08:06:03 +03:00

Avoid call 'positionDropdown' function if the container it's closed

This commit is contained in:
Eduardo Matos 2014-04-15 10:51:23 -03:00
parent 3f43f459e9
commit 22d503f846

View File

@ -1390,7 +1390,7 @@ the specific language governing permissions and limitations under the Apache Lic
var that = this; var that = this;
this.container.parents().add(window).each(function () { this.container.parents().add(window).each(function () {
$(this).on(resize+" "+scroll+" "+orient, function (e) { $(this).on(resize+" "+scroll+" "+orient, function (e) {
if (!that.opened()) that.positionDropdown(); if (that.opened()) that.positionDropdown();
}); });
}); });