]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2637 Issue with dashboard layout in IE6 and IE7
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Aug 2011 12:11:26 +0000 (14:11 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Aug 2011 12:11:26 +0000 (14:11 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb

index 6332e6e65be831e3f262f7c80a02882e2f5f8b1e..74536f71631686ff4e34c55454ea00f013de3963 100644 (file)
@@ -5,9 +5,9 @@
      columns=@dashboard.column_layout.split('-')
      for index in 1..columns.size()
   %>
-
-      <div class="dashboard-column-wrapper" style="width: <%= columns[index-1] -%>; ">
-        <div class="dashboard-column" id="dashboard-column-<%= index -%>" style="margin: 0px <%= index<columns.size() ? "5px" : "0px" -%> 0px <%= index>1 ? "5px" : "0px" -%>;">
+      <!-- the right margin with 1px is a trick for IE. See SONAR-2637 -->
+      <div class="dashboard-column-wrapper" style="width: <%= columns[index-1] -%>;margin: 0 -1px 0 0;">
+        <div class="dashboard-column" id="dashboard-column-<%= index -%>" style="margin: 0 <%= index<columns.size() ? "5px" : "0px" -%> 0 <%= index>1 ? "5px" : "0px" -%>;">
           <%
              @dashboard.widgets.select { |widget| widget.column_index==index }.sort_by { |widget| widget.row_index }.each do |widget|
                widget_definition=@widget_definitions.find { |wd| wd.getId()==widget.widget_key }