From 46530614034e7242fc9aec158b7720bab8aa51ce Mon Sep 17 00:00:00 2001 From: John Postlethwait Date: Mon, 26 Mar 2012 14:38:13 -0700 Subject: [PATCH] Replacing the caption tag in data tables. Using a new row in the thead instead now. This is due to a WebKit bug where the caption element's size cannot be correctly calculated on tables with borders. Fixes Bug #965603 Change-Id: I08962c850061860ed0bd749deb389205c5b731fe --- .../templates/horizon/common/_data_table.html | 10 ++-- horizon/tests/table_tests.py | 2 +- .../static/dashboard/css/style.css | 46 ++++++++++++++++++- 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/horizon/templates/horizon/common/_data_table.html b/horizon/templates/horizon/common/_data_table.html index f96e78447..e64ebf70b 100644 --- a/horizon/templates/horizon/common/_data_table.html +++ b/horizon/templates/horizon/common/_data_table.html @@ -3,11 +3,13 @@
{% csrf_token %} {% with columns=table.get_columns rows=table.get_rows %} - + + + {% for column in columns %} diff --git a/horizon/tests/table_tests.py b/horizon/tests/table_tests.py index fb50df0b1..0c0570159 100644 --- a/horizon/tests/table_tests.py +++ b/horizon/tests/table_tests.py @@ -391,7 +391,7 @@ class DataTableTests(test.TestCase): # Whole table resp = http.HttpResponse(self.table.render()) self.assertContains(resp, '
-

{{ table }}

- {{ table.render_table_actions }} -
+

{{ table }}

+ {{ table.render_table_actions }} +
{{ column }}