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
auto-height on responsive only #2111
Comments
Wrong. You can always use the method
No need for that trick. Use the class What it does is apply auto-height only on responsive mode. |
Maybe you misunderstood:
I tried to say that there's nothing that could be used to unbind the height calculation...
Well, i don't think it's a good idea to use it directly on code... you assigned every "fp-" class with plugin, best way is to continue assigning classes with it, don't you agree? |
Just overide it with CSS: .removeFixedheight,
.removeFixedheight.fp-slide,
.removeFixedheight.fp-tableCell{
height: auto !important;
} You just have to add the class dynamically using javascript or jQuery. But this way you will only be duplicating CSS code as that's exactly what
No, I do not agree. That's the whole purpose of that class. It is not used by the library otherwise. |
I believe you didn't understand me correctly. What I meant is that you can use it this way: <div class="section fp-auto-height-responsive">Auto height</div> Instead of: <div class="section fp-auto-height">Auto height</div> |
On which breakpoint this will affect the height precisely?
No, i'm just asking a development request, as you can develop a small update that could help us with this thing... it's not just for me, it's for everybody :) as the "fp-auto-height" class needs to be inserted on window resize by me, and not by a small new feature of your plugin. |
On the one you specify on the |
@teolaz1990 not all users would like to have that |
Fixed in fullpage.js 2.8.2 |
This is not a bug, this is more a request...
Is it possible to unbind the plugin (and the height calculation for sections) without destroying it only on certain screen formats?
As i can see, for now it's only possible to unbind the autoscroll with the "responsiveWidth" parameter, but nothing else.
I also tried to add an "fp-auto-height" on screen resize on all sections, but it's too late, cause plugin already assigned the height, and... well there's no event handler which starts only after the screen is resized but before the plugin is reinitialized.
Thanks
Teo
The text was updated successfully, but these errors were encountered: