Fixes #2641. ContentBottomRightCorner should only draw his background with a empty. (#2642)

This commit is contained in:
BDisp
2023-05-20 08:23:17 +01:00
committed by GitHub
parent 4a05df9f00
commit 474a1968fa

View File

@@ -119,7 +119,7 @@ namespace Terminal.Gui {
if (Host != null && (_contentBottomRightCorner == null && OtherScrollBarView == null
|| (_contentBottomRightCorner == null && OtherScrollBarView != null && OtherScrollBarView._contentBottomRightCorner == null))) {
_contentBottomRightCorner = new View (" ") {
_contentBottomRightCorner = new View () {
Id = "contentBottomRightCorner",
Visible = Host.Visible,
ClearOnVisibleFalse = false,
@@ -135,9 +135,15 @@ namespace Terminal.Gui {
_contentBottomRightCorner.Width = 1;
_contentBottomRightCorner.Height = 1;
_contentBottomRightCorner.MouseClick += ContentBottomRightCorner_MouseClick;
_contentBottomRightCorner.DrawContent += _contentBottomRightCorner_DrawContent;
}
}
private void _contentBottomRightCorner_DrawContent (object sender, DrawEventArgs e)
{
Driver.SetAttribute (Host.HasFocus ? ColorScheme.Focus : GetNormalColor ());
}
private void Host_VisibleChanged (object sender, EventArgs e)
{
if (!Host.Visible) {