Commit 10e67388 authored by Cottser's avatar Cottser

Revert "Issue #2902361 by drpal: [regression] In Settings Tray when the form...

Revert "Issue #2902361 by drpal: [regression] In Settings Tray when the form is longer than the page body it is tricky to scroll to the very bottom"

This reverts commit 845b1c6c.
parent 3bbf3142
......@@ -155,7 +155,6 @@
const offsets = displace.offsets;
const $element = event.data.$element;
const container = Drupal.offCanvas.getContainer($element);
const $elementScroll = $element.scrollTop();
const topPosition = (offsets.top !== 0 ? `+${offsets.top}` : '');
const adjustedOptions = {
......@@ -175,9 +174,6 @@
$element
.dialog('option', adjustedOptions)
.trigger('dialogContentResize.off-canvas');
// Reset the elements scroll position after being repositioned.
$element.scrollTop($elementScroll);
},
/**
......
......@@ -73,7 +73,6 @@
var offsets = displace.offsets;
var $element = event.data.$element;
var container = Drupal.offCanvas.getContainer($element);
var $elementScroll = $element.scrollTop();
var topPosition = offsets.top !== 0 ? '+' + offsets.top : '';
var adjustedOptions = {
......@@ -90,8 +89,6 @@
});
$element.dialog('option', adjustedOptions).trigger('dialogContentResize.off-canvas');
$element.scrollTop($elementScroll);
},
bodyPadding: function bodyPadding(event) {
if ($('body').outerWidth() < Drupal.offCanvas.minDisplaceWidth) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment