Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2439

Summary: Child rows are cut off at the right side when parent rows are not as wide as child rows
Product: TeeGrid for Delphi Reporter: dean.mustakinov
Component: GridAssignee: david berneda <david>
Status: RESOLVED FIXED    
Severity: enhancement CC: marc
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description dean.mustakinov 2021-06-25 00:23:28 EDT
I have added child rows to TeeGrid_VirtualMode demo.
Parent rows have 3 columns and child rows have 10 columns.
All column widths are automatically calculated and cells are populated with simple strings in Col " x " Row format.
Parent rows show all 3 columns but child rows only show first 4 columns.
I have made a small change that fixed this in my scenario to Tee.Grid.Rows.pas (my change is marked with // DM CHANGE comment): 
procedure TRows.Paint(var AData:TRenderData; const ARender:TRender);
...
  if Lines.Visible then
     PaintColumnLines;

  AData.Bounds.Left:=AData.Bounds.Left+XOffset;
  if VisibleColumns.AnyLocked then // DM CHANGE
    FixMaxRight;

  // Pending: Recalculate all visible sub-band and children-band Height,
  // before painting any of them.

  if FChildren.CanDisplay then
     PaintAllChildren;
...
Comment 1 marc meumann 2021-09-15 08:03:01 EDT
added, thank you for the contribution Dean.