[openstreetmap/openstreetmap-website] Add display:block to the editor iframe (PR #6274)
Josh Lee
notifications at github.com
Thu Jul 31 13:41:15 UTC 2025
### Description
Pressing the down arrow key will sometimes scroll the parent element of the iframe, since it generates an inline box with some whitespace below. This parent element having overflow: hidden meant that it was impossible to scroll deliberately and I would be stuck with a white gutter on the bottom of the viewport for the remainder of my editing session.
Instead of overflow: hidden, give the iframe display: block to avoid generating an inline block.
### How has this been tested?
Manually in Firefox and Chrome.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6274
-- Commit Summary --
* Add display:block to the editor iframe
-- File Changes --
M app/views/site/_id.html.erb (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6274.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6274.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6274
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6274 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250731/86c4c8f5/attachment.htm>
More information about the rails-dev
mailing list