mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Prevent passing wrong frame to SetRelativeLayout method.
This commit is contained in:
@@ -2449,7 +2449,7 @@ namespace Terminal.Gui {
|
||||
|
||||
foreach (var v in ordered) {
|
||||
if (v.LayoutStyle == LayoutStyle.Computed) {
|
||||
v.SetRelativeLayout (Frame);
|
||||
v.SetRelativeLayout (v?.SuperView.Frame ?? Frame);
|
||||
}
|
||||
|
||||
v.LayoutSubviews ();
|
||||
|
||||
Reference in New Issue
Block a user