DBGrid. Resizing column with width much more than DBGrid width.
Original Reporter info from Mantis: DestinyR
-
Reporter name:
Original Reporter info from Mantis: DestinyR
- Reporter name:
Description:
When I try resize column (index=i) by right side the cursor jump to left side of column and I resized the previous column (index=i-1). Condition - resizing column with width much more than DBGrid. See attached image.
Additional information:
I suppose that fix may be implemented in Grids.pas such as:
Implementation of function TCustomGrid.ColRowToOffset:
var
Dim: Integer;
begin
Result:=false;
.
.
.
.
if IsCol and UseRightToLeftAlignment then
begin
EndPos := FlipX(StartPos) + 1;
StartPos := EndPos - Dim;
end
else
begin
EndPos:=StartPos + Dim;
--> if EndPos > Width then EndPos := Width;
end;
end;
Result:=true;
end;
But this not a full fix because it not consider property UseRightToLeftAlignment
Mantis conversion info:
- Mantis ID: 21187
- Version: 0.9.30.3 (SVN)
- Monitored by: » DestinyR (DestinyR)