Disable matchHeight on Mobile
See original GitHub issueI want to disable certain matchHeigh elements on mobile devices.
So I wrote this:
if ($(window).width() < 768) {
$('.noMatch').matchHeight({ remove: true });
}
The idea would be that elements with .noMatch
wouldn’t fire on devices with less than 768px.
But it doesn’t work. How would I have to write this properly?
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Disable the Match Equal Heights Class on Mobile - Total WordPress ...
Snippets: Disable the Match Equal Heights Class on Mobile ... @media only screen and (max-width: 767px) { .match-height-content { height: auto !important; } ......
Read more >Developers - Disable matchHeight on Mobile - - Bountysource
I want to disable certain matchHeigh elements on mobile devices. So I wrote this: if ($(window).width() < 768) { $('.noMatch').matchHeight({ ...
Read more >Disable the Match Equal Heights Class on Mobile - Total Theme
When using the theme's match-height-content classname for creating equal height items using javascript, the height is applied across all ...
Read more >jquery-match-height not working on first row - Stack Overflow
matchHeight ({byRow: false}); // Row detection gets confused so disable it }); });. You can see this at work in this update to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to add my 2 cents in, I simply disabled the inline CSS using a media query and this technique:
https://css-tricks.com/override-inline-styles-with-css/
Took me no time and worked a treat!
Working solution for bootstrap 3. Based on @kyds3k answer.
I used it for xs and sm resolutions. If you want to apply it only on xs change media query to 768px.