diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-03 14:11:26 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-03 14:11:26 +0200 |
commit | 76f4822f38e68482aa7567dab222a224a0e0cbcb (patch) | |
tree | a4a15556a894246211b5c7b8c0471cfdee80a685 | |
parent | 66797a18f71b2111689a9e858e60862c288f95c0 (diff) | |
download | sonarqube-76f4822f38e68482aa7567dab222a224a0e0cbcb.tar.gz sonarqube-76f4822f38e68482aa7567dab222a224a0e0cbcb.zip |
SONAR-2637 Issue with dashboard layout in IE6 and IE7
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb index 6332e6e65be..74536f71631 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb @@ -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 } |