Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[Debugger] Don't let the tableview try to figure out the widths of th…
Browse files Browse the repository at this point in the history
…e columns

Since we are calculating the optimal widths, we don't need to let the table view resize everything.
  • Loading branch information
sgmunn committed Nov 12, 2019
1 parent f143a20 commit 287857e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ void OptimizeColumnSizes (bool emitResized = true)
bool changed = false;

if ((int) nameColumn.Width != (int) nameWidth) {
nameColumn.MinWidth = nameColumn.Width = nameWidth;
nameColumn.Width = nameWidth;
changed = true;
}

if ((int) valueColumn.Width != (int) valueWidth) {
valueColumn.MinWidth = valueColumn.Width = valueWidth;
valueColumn.Width = valueWidth;
changed = true;
}

Expand All @@ -267,8 +267,6 @@ void OptimizeColumnSizes (bool emitResized = true)

if (emitResized)
OnResized ();

SizeToFit ();
}

//ReloadData ();
Expand Down

0 comments on commit 287857e

Please sign in to comment.