mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 13:10:22 +12:00
Fix MaxSize of input boxes
This commit is contained in:
parent
48402c740b
commit
c60467ee3b
|
@ -24,6 +24,7 @@
|
||||||
#endregion License Information (GPL v3)
|
#endregion License Information (GPL v3)
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace ShareX.HelpersLib
|
namespace ShareX.HelpersLib
|
||||||
|
@ -48,6 +49,8 @@ public InputBox(string title = null, string inputText = null, string okText = nu
|
||||||
private void InputBox_Shown(object sender, EventArgs e)
|
private void InputBox_Shown(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.ForceActivate();
|
this.ForceActivate();
|
||||||
|
this.MinimumSize = new Size(384, this.Size.Height);
|
||||||
|
this.MaximumSize = new Size(1000, this.Size.Height);
|
||||||
|
|
||||||
txtInputText.SelectionLength = txtInputText.Text.Length;
|
txtInputText.SelectionLength = txtInputText.Text.Length;
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,12 +207,6 @@
|
||||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>484, 63</value>
|
<value>484, 63</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="$this.MaximumSize" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>1000, 102</value>
|
|
||||||
</data>
|
|
||||||
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>384, 102</value>
|
|
||||||
</data>
|
|
||||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||||
<value>CenterScreen</value>
|
<value>CenterScreen</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
Loading…
Reference in a new issue