Skip to content

Commit

Permalink
added support for options, added property option for min-height
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 29, 2014
1 parent d76b02c commit 94c9d28
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 338 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ Under certain conditions where the size of the page is dynamically changing, suc

If you are observing this behaviour, use the above line to automatically attempt to force scroll position to be maintained (approximately). This is a global setting and by default it is `false`.

#### Using `min-height`

You can change the property that matchHeight will set by passing it via the options argument:

$('.item').matchHeight({ property: 'min-height' });

#### Accessing groups directly

$.fn.matchHeight._groups
Expand Down Expand Up @@ -167,4 +173,4 @@ This license is also supplied with the release and source code.

Making robust, responsive equal height columns for _arbitrary content_ is [difficult or impossible](https://filamentgroup.com/lab/setting_equal_heights_with_jquery/) to do with CSS alone (at least without hacks or trickery, in a backwards compatible way).

Note you should probably ensure your layout is still usable if JavaScript is disabled.
Note you should probably ensure your layout is still usable if JavaScript is disabled.
11 changes: 6 additions & 5 deletions jquery.matchHeight-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 94c9d28

Please sign in to comment.