Commit e362dd9b authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#134307 by dww, Stefan Nantegaal and dvessel: fix table headers interaction...

#134307 by dww, Stefan Nantegaal and dvessel: fix table headers interaction with Safari, so the fieldset contents will not disappear
parent 7ab90f3b
......@@ -42,8 +42,7 @@ Drupal.behaviors.tableHeader = function (context) {
ref = table;
div.wide = true;
}
$(div).css('width', parseInt($(ref).width())
- parseInt($(div).css('paddingLeft')) +'px');
$(div).css('width', $(ref).width() - parseInt($(div).css('paddingLeft')) +'px');
// Get position and store.
div.cell = this;
......@@ -96,8 +95,7 @@ Drupal.behaviors.tableHeader = function (context) {
// Resize the first cell to fit the table.
ref = this.table;
}
$(this).css('width', parseInt($(ref).width())
- parseInt($(this).css('paddingLeft')) +'px');
$(this).css('width', $(ref).width() - parseInt($(this).css('paddingLeft')) +'px');
});
// Reset timer
......
......@@ -352,6 +352,10 @@ html.js fieldset.collapsed legend a {
* html.js fieldset.collapsed table * {
display: inline;
}
/* For Safari 2 to prevent collapsible fieldsets containing tables from dissapearing due to tableheader.js. */
html.js fieldset.collapsible {
position: relative;
}
html.js fieldset.collapsible legend a {
display: block;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment