imodeljs / frontend-sample-showcase

MIT License
17 stars 9 forks source link

Fixed Bug with Gallery Image Resizing #231

Closed tomdicarlo closed 3 years ago

tomdicarlo commented 3 years ago

Fixes issue with sample gallery images sometimes resizing rapidly when being hovered over. Was likely caused by the gallery height getting very close to the parent container, where hovering over an image would cause the gallery to overflow the y axis. This would cause a scrollbar to appear and take up some space, which caused the images to shrink, which would then remove the overflow, leading to the rapid resizing loop. Changing overflow-y from auto to scroll makes space for a scrollbar at all times, which fixes the issue.