Unwanted scroll bars in TScrollBox appears after applying Scale to its parent TLayout in FMX

  

In my application, I have a TScrollBox(child) inside a TLayout(parent) control. When the DPI of the display is higher than 96, I calculate an appropriate scale factor based on the new monitor resolution and application resolution.
The problem is when I apply the scale factor to Layout->Scale->X and Y, the TScrollBox shows unwanted scroll bars even when the content are within the bounds.
DPI: 120
Monitor resolution: 1920 x 1080
Application resolution: 1366 x 765
Scale factor: 0.8
The scrollbox used here shows unwanted horizontal scrollbars
Component breakdown
Any suggestion/hint on how to solve this would be very helpful.
Thanks in advance.
Edit 1: I’m using RAD Studio 10.2.3

Comments are closed.