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' }); }); diff --git a/test.css b/test.css index 9f46902..0d72bf5 100644 --- a/test.css +++ b/test.css @@ -289,4 +289,19 @@ a, a:link, a:visited, a:active, a:hover { display: inline-flex; vertical-align: top; float: none; +} + +/* test with-float */ + +.with-float .item-0 { + float: none; + width: auto; +} + +.with-float .item-0 div { + display: inline-block; + float: left; + width: 150px; + height: 150px; + background: green; } \ No newline at end of file diff --git a/test.html b/test.html index 90e82e4..ad5d478 100644 --- a/test.html +++ b/test.html @@ -344,6 +344,37 @@

Target

+ +
+
+
floated
+

some text

+

some text

+

some text

+

some text

+

some text

+
+
+

some text

+

some text

+

some text

+

some text

+
+
+

some text

+

some text

+

some text

+

some text

+
+
+

some text

+
+
+

some text

+

some text

+

some text

+
+