mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Moved AutoSize specific tests out of Pos/Dim tests
This commit is contained in:
@@ -61,10 +61,12 @@ public partial class View {
|
||||
get => _frame;
|
||||
set {
|
||||
_frame = new Rect (value.X, value.Y, Math.Max (value.Width, 0), Math.Max (value.Height, 0));
|
||||
_x = _frame.X;
|
||||
_y = _frame.Y;
|
||||
_width = _frame.Width;
|
||||
_height = _frame.Height;
|
||||
if (LayoutStyle == LayoutStyle.Absolute) {
|
||||
_x = _frame.X;
|
||||
_y = _frame.Y;
|
||||
_width = _frame.Width;
|
||||
_height = _frame.Height;
|
||||
}
|
||||
if (IsInitialized || LayoutStyle == LayoutStyle.Absolute) {
|
||||
LayoutFrames ();
|
||||
TextFormatter.Size = GetTextFormatterSizeNeededForTextAndHotKey ();
|
||||
|
||||
Reference in New Issue
Block a user