Skip to content

Commit

Permalink
Add scrollbar to iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
parapente committed Apr 16, 2024
1 parent 9708370 commit fc93e3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ public static function attachmentButtonsHTML($parent_type, $parent_id, $parent_e
'libraries.html.bootstrap.modal.main',
[
'selector' => 'modal-' . $randomId,
'body' => "<iframe src=\"$url\" scrolling=\"no\" loading=\"lazy\"></iframe>",
'body' => "<iframe src=\"$url\" scrolling=\"yes\" loading=\"lazy\"></iframe>",
'params' => $modalParams
]
);
Expand Down
4 changes: 2 additions & 2 deletions attachments_component/site/tmpl/attachments/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
'libraries.html.bootstrap.modal.main',
[
'selector' => 'modal-' . $randomId,
'body' => "<iframe src=\"$update_url\" scrolling=\"no\" loading=\"lazy\"></iframe>",
'body' => "<iframe src=\"$update_url\" scrolling=\"yes\" loading=\"lazy\"></iframe>",
'params' => $modalParams
]
);
Expand Down Expand Up @@ -359,7 +359,7 @@
'libraries.html.bootstrap.modal.main',
[
'selector' => 'modal-' . $randomId,
'body' => "<iframe src=\"$delete_url\" scrolling=\"no\" loading=\"lazy\"></iframe>",
'body' => "<iframe src=\"$delete_url\" scrolling=\"yes\" loading=\"lazy\"></iframe>",
'params' => $modalParams
]
);
Expand Down

0 comments on commit fc93e3e

Please sign in to comment.