mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed dropdowns not working when Offcanvas was off (fixes #583)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user