Announcement

Collapse
No announcement yet.

Grid.ExpandLastColumn not working when resizing the Grid object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grid.ExpandLastColumn not working when resizing the Grid object

    Hi. I added AutoResize right and bottom to a grid object to make it bigger when the window gets resized. I added a "Grid.ExpandLastColumn("AddonGrid", true);" in the OnSize event of the page and it works fine when you increase the window and the grid grows. The last column nicely fits. But when you make the window smaller the last column does not shrink and you keep a horizontal scrollbar. Is this a bug?
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    Redraw the grid on resizing the window or call the function to expand the last column on resizing the window (if there is a function).

    Comment


    • #3
      I tried to add "Grid.SetRedraw("AddonGrid", true, true);" and "Grid.Refresh("AddonGrid");" (separately) in the page OnSize script but it did not fix it.

      It should already redraw every pixel with the Grid.ExpandLastColumn("AddonGrid", true) (true=redraw) and it works if I make it bigger, but not if I make it smaller. :-/
      Bl4ckSh33p-Soft - Custom Software and Indie Games

      Comment

      Working...
      X