Fixed dropdowns not working when Offcanvas was off (fixes #583)

This commit is contained in:
Djamil Legato
2015-07-16 12:28:01 -07:00
parent 832ff14859
commit 2f72df192b
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -81,11 +81,11 @@ var Offcanvas = new prime({
this.panel = $('#g-page-surround');
this.offcanvas = $('#g-offcanvas');
if (!this.panel || !this.offcanvas) { return false; }
var swipe = this.offcanvas.data('g-offcanvas-swipe');
this.setOptions({ touch: !!(swipe !== null ? parseInt(swipe) : 1) });
if (!this.panel || !this.offcanvas) { return false; }
if (!this.options.padding) {
this.offcanvas[0].style.display = 'block';
var width = this.offcanvas[0].getBoundingClientRect().width;