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 - Child rows are cut off at the right side when parent rows are not as wide as child rows
Summary: Child rows are cut off at the right side when parent rows are not as wide as ...
Status: RESOLVED FIXED
Alias: None
Product: TeeGrid for Delphi
Classification: Unclassified
Component: Grid (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: david berneda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-25 00:23 EDT by dean.mustakinov
Modified: 2021-09-15 08:03 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.