New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Height Property #30
Comments
Thanks for the suggestion, but this may actually break the result for some peoples use cases! The only way it would really work fully is if matchHeight could update automatically when items change size. This would be getting into element query territory though. |
+1 |
Can either of you show me a jsfiddle with a case where you need this ability? Thanks |
Hi, it's a little hard, to show but i will describe why. If you use it on responsive layouts, then height can create some huge gaps or try to force the content to fit in a smaller box that the content is on mobile. Please let me know if it makes sense. |
I also vote for some flexibility and/or updating option. My use case - I'm using this for equal height content and sidebar columns. If I use any sort of collapsable tabs that expand in the content area that will break the layout as the height is set. |
@smdksu if I add an option to use |
After playing around with some more options my issue seems to be more complicated. Min-height helps the content area that gets expanded but leaves the other columns needed to be resized. In most use cases this is probably fine but since I am using it on a content area and sidebar it doesn't work visually for the sidebar to have a gap. You can call the resize update function but you have to wait for the content to fully expanded, and if there is any animation to the expansion then there is a big delay before everything lines back up. This is especially jarring on collapse since columns can overlap before resizing. I'm now thinking that the issue is too complex to have this sort of solution work. Which is fine, the plugin does a great job at what it already does. |
Exactly, animation or any kind of dynamic sizing isn't supported by the nature of the plugin sadly.
This is the conclusion I came to as well when I was looking at this sort of thing, they only really work for very specific use cases. So unless someone provides a jsfiddle with a good example, I still don't see a concrete need or feature here that can be implemented? |
Hello, I have the situation :) For this case, an option could be useful. |
@tomagladiator not sure why you need matchHeight for that? Either way, just calling |
Thanks, In reality I have a huge tentacular forms with a lot of animated slideDown. This fiddle is more closer to my case : http://jsfiddle.net/twnevn8k/3/ |
So again, your problem is because of animation? As animation isn't supported... |
indeed. -_-' So, I will add a custom script to change your height to min-height. |
@kiballion @maximelebreton @smdksu @tomagladiator I have added support for Usage is like so:
I'm still not certain this will solve the root cause of most of your issues here, but please try it and tell me if you have any success. Thanks. |
Hi, I am using the 0.5.2 version and the above fix does not seem to work. Was the min-height released as part of the 0.5.2? Thanks again for your work and for sharing. |
This feature is currently only in the latest master build so please use that for the time being, thanks. |
Thanks. Will do. Sent from my iPhone
|
Hey there,
Congrats for your plugin! You might consider setting the min-height param and not the height as it will allow more flexibility; just a quick hint :)
Radu
The text was updated successfully, but these errors were encountered: