From: Tom Hughes Date: Sat, 2 Jul 2011 15:19:47 +0000 (+0100) Subject: Fix resizing of the map area in RTL layouts X-Git-Tag: live~6215 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/599843c72db1f519daa085de69a19d9aa77332e2 Fix resizing of the map area in RTL layouts --- diff --git a/app/views/site/_resize.html.erb b/app/views/site/_resize.html.erb new file mode 100644 index 000000000..a4975e14f --- /dev/null +++ b/app/views/site/_resize.html.erb @@ -0,0 +1,41 @@ + diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index a9b915faf..fdbfa5428 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -18,46 +18,22 @@ <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> <%= render :partial => 'search' %> +<%= render :partial => 'resize' %> <%= render :partial => preferred_editor %> <% end %> diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 5c02efb82..84ffcbe59 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -118,9 +118,9 @@ end <%= javascript_include_tag '/openlayers/OpenStreetMap.js' %> <%= javascript_include_tag 'map.js' %> +<%= render :partial => 'resize' %> +