The TListView component imposes its own size.
Original Reporter info from Mantis: J-23
-
Reporter name: Łukasz Bączek
Original Reporter info from Mantis: J-23
- Reporter name: Łukasz Bączek
Description:
The child of the control changes the size of the parent. This happens when the align is set: = clClient. This should adapt the child to the parent.
After adding TListView, the width is changed from 498 to 589 GroupBox1 instead of matching to GroupBox
The error occurs when the layout of the components is set using ChildSize
Steps to reproduce:
object Form1: TForm1
Left = 355
Height = 620
Top = 120
Width = 996
Caption = 'Form1'
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.Layout = cclTopToBottomThenLeftToRight
ClientHeight = 620
ClientWidth = 996
LCLVersion = '2.0.6.0'
object GroupBox1: TGroupBox
Left = 0
Height = 620
Top = 0
Width = 498
Caption = 'GroupBox1'
TabOrder = 0
end
object GroupBox2: TGroupBox
Left = 498
Height = 620
Top = 0
Width = 498
Caption = 'GroupBox2'
TabOrder = 1
end
end
Additional information:
I also described the problem in the forum where one of the discussors confirmed my problems.
https://forum.lazarus.freepascal.org/index.php/topic,49678.0.html
Mantis conversion info:
- Mantis ID: 37030
- Version: 2.0.8
- Monitored by: » @martin_frb (Martin Friebe), » J-23 (Łukasz Bączek)