mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-20 17:00:45 +00:00
Add escape to cancel range min/max change, commit change on focus loss
This commit is contained in:
@@ -33,8 +33,13 @@ namespace renderdocui.Controls
|
||||
// http://msdn.microsoft.com/en-us/library/ms404304(v=vs.90).aspx
|
||||
public class ToolStripSpringTextBox : ToolStripTextBox
|
||||
{
|
||||
public bool ResizeToFit = true;
|
||||
|
||||
public override Size GetPreferredSize(Size constrainingSize)
|
||||
{
|
||||
if (!ResizeToFit)
|
||||
return base.GetPreferredSize(constrainingSize);
|
||||
|
||||
// Use the default size if the text box is on the overflow menu
|
||||
// or is on a vertical ToolStrip.
|
||||
if (IsOnOverflow || Owner.Orientation == Orientation.Vertical)
|
||||
|
||||
Reference in New Issue
Block a user