View Issue Details

IDProjectCategoryView StatusLast Update
0025832LazarusLCLpublic2014-11-06 12:22
ReporterPetr-KAssigned ToJesus Reyes 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3 (SVN)Product Buildtrunk #43585 
Target Version1.4Fixed in Version1.3 (SVN) 
Summary0025832: Bad grid long column sizing
DescriptionIf the grid column is longer than width of the grid, then column sizing does not work correctly. Dragging by right margin of column changes width of the previous column.

Patch correcting this issue is included.
Tagspatch
Fixed in Revision44372
LazTarget1.4
Widgetset
Attached Files
  • grids.diff (551 bytes)
    Index: grids.pas
    ===================================================================
    --- grids.pas	(revision 43585)
    +++ grids.pas	(working copy)
    @@ -2514,7 +2562,7 @@
         Index := OrgIndex;
         ColRowToOffset(true, true, Index, OffIni, OffEnd);
     
    -    if (OffEnd-FGCache.ClickMouse.X) <  (FGCache.ClickMouse.X-OffIni) then begin
    +    if (Min(OffEnd, FGCache.ClientRect.Right)-FGCache.ClickMouse.X) <  (FGCache.ClickMouse.X-OffIni) then begin
           if X>FGCache.ClickMouse.X then
             ACase := 4  // dragging right side to the right
           else
    
    grids.diff (551 bytes)

Activities

Petr-K

2014-03-07 13:39

reporter  

grids.diff (551 bytes)
Index: grids.pas
===================================================================
--- grids.pas	(revision 43585)
+++ grids.pas	(working copy)
@@ -2514,7 +2562,7 @@
     Index := OrgIndex;
     ColRowToOffset(true, true, Index, OffIni, OffEnd);
 
-    if (OffEnd-FGCache.ClickMouse.X) <  (FGCache.ClickMouse.X-OffIni) then begin
+    if (Min(OffEnd, FGCache.ClientRect.Right)-FGCache.ClickMouse.X) <  (FGCache.ClickMouse.X-OffIni) then begin
       if X>FGCache.ClickMouse.X then
         ACase := 4  // dragging right side to the right
       else
grids.diff (551 bytes)

Jesus Reyes

2014-03-07 21:28

developer   ~0073542

Applied, Thanks.

Petr-K

2014-11-06 12:22

reporter   ~0078951

Tested

Issue History

Date Modified Username Field Change
2014-03-07 13:39 Petr-K New Issue
2014-03-07 13:39 Petr-K File Added: grids.diff
2014-03-07 13:55 Reinier Olislagers Tag Attached: patch
2014-03-07 20:37 Jesus Reyes Assigned To => Jesus Reyes
2014-03-07 20:37 Jesus Reyes Status new => assigned
2014-03-07 21:28 Jesus Reyes Fixed in Revision => 44372
2014-03-07 21:28 Jesus Reyes LazTarget => 1.4
2014-03-07 21:28 Jesus Reyes Note Added: 0073542
2014-03-07 21:28 Jesus Reyes Status assigned => resolved
2014-03-07 21:28 Jesus Reyes Fixed in Version => 1.3 (SVN)
2014-03-07 21:28 Jesus Reyes Resolution open => fixed
2014-03-07 21:28 Jesus Reyes Target Version => 1.4
2014-11-06 12:22 Petr-K Note Added: 0078951
2014-11-06 12:22 Petr-K Status resolved => closed