mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Fixes #3182. OnResizeNeeded returns int.MaxValue and int.MaxValue when Application.Top is null, should return Size.Empty.
This commit is contained in:
@@ -560,7 +560,7 @@ public partial class View {
|
||||
var relativeBounds = SuperView is { IsInitialized: true } ? SuperView.Bounds :
|
||||
Application.Top != null && Application.Top.IsInitialized ? Application.Top.Bounds :
|
||||
Application.Driver?.Bounds ??
|
||||
new Rect (0, 0, int.MaxValue, int.MaxValue);
|
||||
Rect.Empty;
|
||||
SetRelativeLayout (relativeBounds);
|
||||
|
||||
// TODO: Determine what, if any of the below is actually needed here.
|
||||
|
||||
Reference in New Issue
Block a user