Browse Source

Walkaround for debugger tooltip resizing

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1414 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
95d37dc930
  1. 9
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs

9
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs

@ -50,6 +50,8 @@ namespace ICSharpCode.SharpDevelop.Services
{ {
} }
bool skipUpdate = true;
public DynamicTreeDebuggerRow(Variable variable) public DynamicTreeDebuggerRow(Variable variable)
{ {
if (variable == null) throw new ArgumentNullException("variable"); if (variable == null) throw new ArgumentNullException("variable");
@ -57,7 +59,10 @@ namespace ICSharpCode.SharpDevelop.Services
this.variable = variable; this.variable = variable;
this.Shown += delegate { this.Shown += delegate {
this.variable.ValueChanged += Update; this.variable.ValueChanged += Update;
DoInPausedState( delegate { Update(); } ); if (!skipUpdate) {
DoInPausedState( delegate { Update(); } );
}
skipUpdate = false;
}; };
this.Hidden += delegate { this.Hidden += delegate {
this.variable.ValueChanged -= Update; this.variable.ValueChanged -= Update;
@ -68,6 +73,8 @@ namespace ICSharpCode.SharpDevelop.Services
this[1].Paint += OnIconPaint; this[1].Paint += OnIconPaint;
this[3].FinishLabelEdit += OnLabelEdited; this[3].FinishLabelEdit += OnLabelEdited;
this[3].MouseDown += OnMouseDown; this[3].MouseDown += OnMouseDown;
Update();
} }
void Update(object sender, DebuggerEventArgs e) void Update(object sender, DebuggerEventArgs e)

Loading…
Cancel
Save