diff --git a/Terminal.Gui/View/ViewContent.cs b/Terminal.Gui/View/ViewContent.cs index b94213d30..58788499f 100644 --- a/Terminal.Gui/View/ViewContent.cs +++ b/Terminal.Gui/View/ViewContent.cs @@ -100,7 +100,7 @@ public partial class View public Size ContentSize { get => _contentSize ?? Viewport.Size; - set => SetContentSize (value); + protected internal set => SetContentSize (value); } /// diff --git a/Terminal.Gui/Views/Toplevel.cs b/Terminal.Gui/Views/Toplevel.cs index 0b5bd14ad..28969371a 100644 --- a/Terminal.Gui/Views/Toplevel.cs +++ b/Terminal.Gui/Views/Toplevel.cs @@ -23,7 +23,7 @@ namespace Terminal.Gui; public partial class Toplevel : View { /// - /// Initializes a new instance of the class with layout, + /// Initializes a new instance of the class, /// defaulting to full screen. The and properties will be set to the /// dimensions of the terminal using . /// diff --git a/UICatalog/Scenarios/ASCIICustomButton.cs b/UICatalog/Scenarios/ASCIICustomButton.cs index ab3e821d8..8b9833173 100644 --- a/UICatalog/Scenarios/ASCIICustomButton.cs +++ b/UICatalog/Scenarios/ASCIICustomButton.cs @@ -235,6 +235,7 @@ public class ASCIICustomButtonTest : Scenario pages++; } + // BUGBUG: set_ContentSize is supposed to be `protected`. _scrollView.ContentSize = new (25, pages * BUTTONS_ON_PAGE * BUTTON_HEIGHT); if (_smallerWindow) diff --git a/UICatalog/Scenarios/Clipping.cs b/UICatalog/Scenarios/Clipping.cs index 0aba6ece9..6fc3782f1 100644 --- a/UICatalog/Scenarios/Clipping.cs +++ b/UICatalog/Scenarios/Clipping.cs @@ -29,6 +29,7 @@ public class Clipping : Scenario var scrollView = new ScrollView { X = 3, Y = 3, Width = 50, Height = 20 }; scrollView.ColorScheme = Colors.ColorSchemes ["Menu"]; + // BUGBUG: set_ContentSize is supposed to be `protected`. scrollView.ContentSize = new (200, 100); //ContentOffset = Point.Empty, diff --git a/UICatalog/Scenarios/ContentScrolling.cs b/UICatalog/Scenarios/ContentScrolling.cs index 3aa9c8c7e..cf4b721cd 100644 --- a/UICatalog/Scenarios/ContentScrolling.cs +++ b/UICatalog/Scenarios/ContentScrolling.cs @@ -244,7 +244,7 @@ public class ContentScrolling : Scenario return; } - + // BUGBUG: set_ContentSize is supposed to be `protected`. view.ContentSize = view.ContentSize with { Width = e.NewValue }; } @@ -272,7 +272,7 @@ public class ContentScrolling : Scenario return; } - + // BUGBUG: set_ContentSize is supposed to be `protected`. view.ContentSize = view.ContentSize with { Height = e.NewValue }; } diff --git a/UICatalog/Scenarios/Scrolling.cs b/UICatalog/Scenarios/Scrolling.cs index 4d21452f5..5ab9461ca 100644 --- a/UICatalog/Scenarios/Scrolling.cs +++ b/UICatalog/Scenarios/Scrolling.cs @@ -44,6 +44,7 @@ public class Scrolling : Scenario ShowVerticalScrollIndicator = true, ShowHorizontalScrollIndicator = true }; + // BUGBUG: set_ContentSize is supposed to be `protected`. scrollView.ContentSize = new (120, 40); scrollView.Padding.Thickness = new (1);