QT (on w32): scrollbar.Size returns wrong size
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Sorry no simple case to reproduce.
With the latest IDE resize the width of the main IDE bar, You will see that it does not always wrap the component palette correct (there will be a horiz scrollbar at times)
In
ide\componentpalette.pas line 569 add
DebugLn([ScrollBox.ClientWidth, ' ', ScrollBox.VertScrollBar.ClientSizeWithoutBar, ' ', ScrollBox.VertScrollBar.ClientSizeWithBar,
' size=',ScrollBox.VertScrollBar.Size
]);
You will notice (while resizing) that sive changes.
I get 30 (correct), 25 and 61 .
This leads to ScrollBox.VertScrollBar.ClientSizeWithoutBar returning to big a value. Because it takes the clientwidth and adds the Size (should be 30, but adds 60, which is to much.
Mantis conversion info:
- Mantis ID: 26084
- OS: win
- OS Build: vista
- Platform: w32
- Version: 1.3 (SVN)
- Fixed in revision: 44831 (#2b826c43)