Reverting the CanBeVisible method.

This commit is contained in:
BDisp
2020-12-27 18:16:44 +00:00
parent 43ea03bc29
commit 30e4439e7b

View File

@@ -2133,11 +2133,11 @@ namespace Terminal.Gui {
bool CanBeVisible (View view)
{
if (!view.Visible || view.Frame.Width == 0 || view.Frame.Height == 0) {
if (!view.Visible) {
return false;
}
for (var c = view.SuperView; c != null; c = c.SuperView) {
if (!c.Visible || c.Frame.Width == 0 || c.Frame.Height == 0) {
if (!c.Visible) {
return false;
}
}