diff options
author | Jorrit Schippers <jorrit@ncode.nl> | 2015-10-15 08:02:06 +0200 |
---|---|---|
committer | Jorrit Schippers <jorrit@ncode.nl> | 2015-10-15 08:02:06 +0200 |
commit | 8844acb9fea5e734ba10ef365091eee01e3c2be9 (patch) | |
tree | 49af4af08042aaa2d5f3bf8171178f65947992ce /jquery.matchHeight.js | |
parent | 91e50ad957b99dc30fab31e6aeb04f8669a63c10 (diff) | |
download | jquery-match-height-8844acb9fea5e734ba10ef365091eee01e3c2be9.zip jquery-match-height-8844acb9fea5e734ba10ef365091eee01e3c2be9.tar.gz jquery-match-height-8844acb9fea5e734ba10ef365091eee01e3c2be9.tar.bz2 |
Improve row detection when cells contain floating contents
The row detection mechanism fixes the height of each cell to 100 pixels.
Cells that have floating contents can in some conditions remain taller
than 100 pixels, causing cells in the same row to be of unequal height.
Adding `overflow: hidden` fixes this problem.
Diffstat (limited to 'jquery.matchHeight.js')
-rw-r--r-- | jquery.matchHeight.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery.matchHeight.js b/jquery.matchHeight.js index 392bd1a..b3123f2 100644 --- a/jquery.matchHeight.js +++ b/jquery.matchHeight.js @@ -187,7 +187,8 @@ 'margin-bottom': '0',
'border-top-width': '0',
'border-bottom-width': '0',
- 'height': '100px'
+ 'height': '100px',
+ 'overflow': 'hidden'
});
});
|