-
Notifications
You must be signed in to change notification settings - Fork 129
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
Browser resize does not properly resize <gallery>
when [autoHeight]="true"
#573
Comments
Yea, that doesn't look great, I have to look into this! It's good you have a found a workaround, maybe you can also use |
I've not heard of However I think this resize issue happens on any resize, not just at breakpoints. The gallery shows/shrinks as the page resizes and it just feels weird and jerky. However, it is much more noticeable when doing a large size jump, like a mobile/desktop breakpoint |
The auto-height is relatively a new feature in this plugin, it didn't receive enough feedback to improve. I will consider using the |
I would like the ability to:
If there were no resize animation on window resizing, some of my issues here would just go away, or at least not be visible or apparent |
You can change the transition actually, try this out gallery {
--g-height-transition: none;
} |
What is the expected behavior?
When I set
[autoHeight]="true"
and I resize my window, the gallery height should animate to the correct height.What is the current behavior?
When I set
[autoHeight]="true"
and I resize my window, the gallery height is not always updated until I click on it. If I resize multiple times, it seems to store up all the past heights it encountered and "replay" them. See a screen recording hereWhat are the steps to reproduce?
I set up my HTML with this
And then in my TS file I just provided the
imagesArr
with an array ofImageItem
objects with only asrc
and athumb
pathStackBlitz: Code | Demo
Like in my screen recording, try opening up dev tools and toggling the device toolbar on and off. You will see the resize weirdness happen
What is the use-case or motivation for changing an existing behavior?
To make images appear correctly when the browser is resized
Which versions are you using for the following packages?
Angular:
16.2.1
Angular CDK:
16.2.1
Angular CLI:
16.2.0
Typescript:
5.1.6
Gallery:
11.0.0
Anything else?
I have found a temporary workaround, which I hate, but it does work to fix the issue.
The text was updated successfully, but these errors were encountered: