View Issue Details

IDProjectCategoryView StatusLast Update
0037030LazarusLCLpublic2020-05-07 13:48
ReporterŁukasz Bączek Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.0.8 
Summary0037030: The TListView component imposes its own size.
DescriptionThe 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 Reproduceobject 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 InformationI 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
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

Martin Friebe

2020-05-07 04:16

manager   ~0122650

As far as I can see, their is a general issue with ChildSizing.

The presence of grand children (controls in the controls that are sized by ChildSizing), and even the position of those do influence the sizing.

Łukasz Bączek

2020-05-07 13:48

reporter   ~0122654

exactly

Issue History

Date Modified Username Field Change
2020-05-07 02:31 Łukasz Bączek New Issue
2020-05-07 04:16 Martin Friebe Note Added: 0122650
2020-05-07 13:48 Łukasz Bączek Note Added: 0122654