summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Reeves2016-07-31 15:05:44 (GMT)
committerScott Reeves2016-07-31 15:05:44 (GMT)
commit97a10c061d09a9f156cf982d53dd68693142d76a (patch)
treeefa79871f9b8d52b1bf01a15451f22f88d45d279
parent417d9006232b6746c0716bac4601afcfd2a19310 (diff)
Issue #2671870 by droplet, darketaine, Sumit kumar: Drupal dialogs overflow in small resolutions when vertical toolbar is open
-rw-r--r--core/misc/dialog/dialog.position.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/misc/dialog/dialog.position.js b/core/misc/dialog/dialog.position.js
index 7678646..40bb5b6 100644
--- a/core/misc/dialog/dialog.position.js
+++ b/core/misc/dialog/dialog.position.js
@@ -56,7 +56,9 @@
}
}
// Offset the dialog center to be at the center of Drupal.displace.offsets.
- adjustedOptions = resetPosition(adjustedOptions);
+ if (!event.data.settings.modal) {
+ adjustedOptions = resetPosition(adjustedOptions);
+ }
event.data.$element
.dialog('option', adjustedOptions)
.trigger('dialogContentResize');