Fix reliableHiddenOffsets test was not working properly when table cells have borders, causing unnecessary slowness in some browsers. Thanks to matjas for his $.support test page.
This commit is contained in:
parent
1f92edee20
commit
52b1709b94
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
||||||
jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
|
jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
|
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
|
||||||
var tds = div.getElementsByTagName("td");
|
var tds = div.getElementsByTagName("td");
|
||||||
|
|
||||||
// Check if table cells still have offsetWidth/Height when they are set
|
// Check if table cells still have offsetWidth/Height when they are set
|
||||||
|
|
Loading…
Reference in a new issue