projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
modules
/
contrib
/
entity_browser
/
src
/
Plugin
/
EntityBrowser
/
Display
/
Modal.php
diff --git
a/web/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php
b/web/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php
index 3e855a55890c94522fbfa812f56f6cb79602bf69..aeeac5f690598509707e67cfdf99abf8c0e97b32 100644
(file)
--- a/
web/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php
+++ b/
web/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php
@@
-116,13
+116,15
@@
class Modal extends IFrame {
'src' => $src,
'class' => 'entity-browser-modal-iframe',
'width' => '100%',
'src' => $src,
'class' => 'entity-browser-modal-iframe',
'width' => '100%',
- 'height' => $this->configuration['height'] - 90,
'frameborder' => 0,
'style' => 'padding:0; position:relative; z-index:10002;',
'name' => $name,
'id' => $name,
],
];
'frameborder' => 0,
'style' => 'padding:0; position:relative; z-index:10002;',
'name' => $name,
'id' => $name,
],
];
+ if (!empty($this->configuration['height']) && is_numeric($this->configuration['height']) && $this->configuration['height'] > 90) {
+ $content['#attributes']['height'] = $this->configuration['height'] - 90;
+ }
$html = drupal_render($content);
$response = new AjaxResponse();
$html = drupal_render($content);
$response = new AjaxResponse();