mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 11:20:58 +00:00
Fixed bug in dockers panel system that allowed the panel to go bonkers when resized smaller than possible.
This commit is contained in:
parent
706317a676
commit
e6d4bdb607
2 changed files with 18 additions and 9 deletions
|
@ -408,6 +408,8 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
int delta = e.X - splitstartoffset;
|
||||
int collapsedwidth = GetCollapsedWidth();
|
||||
if(rightalign)
|
||||
{
|
||||
if((this.Width > collapsedwidth) || (delta < 0))
|
||||
{
|
||||
this.Left += delta;
|
||||
this.Width -= delta;
|
||||
|
@ -417,12 +419,16 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
this.Width = collapsedwidth;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if((this.Width > collapsedwidth) || (delta > 0))
|
||||
{
|
||||
this.Width += delta;
|
||||
if(this.Width < collapsedwidth)
|
||||
this.Width = collapsedwidth;
|
||||
}
|
||||
}
|
||||
|
||||
General.MainWindow.UnlockUpdate();
|
||||
this.Update();
|
||||
|
|
|
@ -2803,7 +2803,10 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
General.Settings.DockersWidth = dockerspanel.Width;
|
||||
|
||||
if(!General.Settings.CollapseDockers)
|
||||
{
|
||||
dockersspace.Width = dockerspanel.Width;
|
||||
dockerspanel.Left = dockersspace.Left;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue