Skip to content

Code Insights: [FE] Show shutters elements only if container has a scroll

Administrator requested to merge vk/fix-scroll-box-layout into main

Created by: vovakulikov

Prior to this PR, we had a problem with the scroll box at the legend block layout. We always showed a scroll bar even if visually legend block didn't have overflowed content. With this PR's change, we calculate scroll height and client height to determine whether a legend block has overflowed content or not, and based on this calculation render or not shutter scroll box elements.

Screenshot 2021-12-16 at 14 47 33

Merge request reports

Loading