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.panel = $('#g-page-surround');
|
||||||
this.offcanvas = $('#g-offcanvas');
|
this.offcanvas = $('#g-offcanvas');
|
||||||
|
|
||||||
|
if (!this.panel || !this.offcanvas) { return false; }
|
||||||
|
|
||||||
var swipe = this.offcanvas.data('g-offcanvas-swipe');
|
var swipe = this.offcanvas.data('g-offcanvas-swipe');
|
||||||
this.setOptions({ touch: !!(swipe !== null ? parseInt(swipe) : 1) });
|
this.setOptions({ touch: !!(swipe !== null ? parseInt(swipe) : 1) });
|
||||||
|
|
||||||
if (!this.panel || !this.offcanvas) { return false; }
|
|
||||||
|
|
||||||
if (!this.options.padding) {
|
if (!this.options.padding) {
|
||||||
this.offcanvas[0].style.display = 'block';
|
this.offcanvas[0].style.display = 'block';
|
||||||
var width = this.offcanvas[0].getBoundingClientRect().width;
|
var width = this.offcanvas[0].getBoundingClientRect().width;
|
||||||
|
|||||||
Vendored
+2
-2
@@ -422,11 +422,11 @@ var Offcanvas = new prime({
|
|||||||
this.panel = $('#g-page-surround');
|
this.panel = $('#g-page-surround');
|
||||||
this.offcanvas = $('#g-offcanvas');
|
this.offcanvas = $('#g-offcanvas');
|
||||||
|
|
||||||
|
if (!this.panel || !this.offcanvas) { return false; }
|
||||||
|
|
||||||
var swipe = this.offcanvas.data('g-offcanvas-swipe');
|
var swipe = this.offcanvas.data('g-offcanvas-swipe');
|
||||||
this.setOptions({ touch: !!(swipe !== null ? parseInt(swipe) : 1) });
|
this.setOptions({ touch: !!(swipe !== null ? parseInt(swipe) : 1) });
|
||||||
|
|
||||||
if (!this.panel || !this.offcanvas) { return false; }
|
|
||||||
|
|
||||||
if (!this.options.padding) {
|
if (!this.options.padding) {
|
||||||
this.offcanvas[0].style.display = 'block';
|
this.offcanvas[0].style.display = 'block';
|
||||||
var width = this.offcanvas[0].getBoundingClientRect().width;
|
var width = this.offcanvas[0].getBoundingClientRect().width;
|
||||||
|
|||||||
+1
-3
@@ -6024,6 +6024,4 @@ html.g5-dialog-open {
|
|||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*# sourceMappingURL=admin.css.map */
|
||||||
|
|
||||||
/*# sourceMappingURL=admin.css.map */
|
|
||||||
|
|||||||
Reference in New Issue
Block a user