1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Testing if the dropdown is opened before call positionDropdown, on events by resize, scroll and orientation

This commit is contained in:
Eduardo Matos 2014-04-11 14:02:11 -03:00
parent 60d74da872
commit 3f43f459e9

View File

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