Keep text box size efter fullscreen - thx samhareem :)

Fix #5064
This commit is contained in:
Nikolaj Olsson 2021-05-29 11:42:56 +02:00
parent 3ee84ffb5c
commit fd052ad16f

View File

@ -17723,6 +17723,8 @@ namespace Nikse.SubtitleEdit.Forms
return;
}
_textHeightResize = splitContainerListViewAndText.Height - splitContainerListViewAndText.SplitterDistance;
_textHeightResizeIgnoreUpdate = DateTime.UtcNow.Ticks;
mediaPlayer.ShowFullScreenControls();
bool setRedockOnFullscreenEnd = false;
@ -24844,6 +24846,7 @@ namespace Nikse.SubtitleEdit.Forms
return;
}
_textHeightResizeIgnoreUpdate = DateTime.UtcNow.Ticks;
mediaPlayer.ShowNonFullScreenControls();
SaveUndockedPositions();
@ -24902,16 +24905,8 @@ namespace Nikse.SubtitleEdit.Forms
redockVideoControlsToolStripMenuItem.Visible = false;
SubtitleListview1.SelectIndexAndEnsureVisible(_subtitleListViewIndex, true);
try
{
splitContainerMain.SplitterDistance = Configuration.Settings.General.SplitContainerMainSplitterDistance;
splitContainer1.SplitterDistance = Configuration.Settings.General.SplitContainer1SplitterDistance;
splitContainerListViewAndText.SplitterDistance = Configuration.Settings.General.SplitContainerListViewAndTextSplitterDistance;
}
catch
{
// ignore
}
_textHeightResizeIgnoreUpdate = 0;
Main_ResizeEnd(null, null);
}
private void Bw_DoWork(object sender, DoWorkEventArgs e)
@ -30245,8 +30240,8 @@ namespace Nikse.SubtitleEdit.Forms
}
catch
{
// Ignore
}
// Ignore
}
});
}