From 066b49eb037b2f465f4a1e89d22162a4c8c52e89 Mon Sep 17 00:00:00 2001 From: Josh Lee Date: Thu, 31 Jul 2025 09:29:26 -0400 Subject: [PATCH] Add display:block to the editor iframe 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. --- app/views/site/_id.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index dd0acd730..ef1a7accb 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -1,11 +1,11 @@ <%= javascript_include_tag "edit/id" %> -
+
<% data = { :configured => Settings.key?(:id_application) } data[:lat] = @lat if @lat data[:lon] = @lon if @lon data[:zoom] = @zoom if @zoom data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx] data[:url] = id_url(:locale => params[:locale]) %> - <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100", :allowfullscreen => true, :autofocus => true, :data => data %> + <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100 d-block", :allowfullscreen => true, :autofocus => true, :data => data %>
-- 2.39.5