mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Addded comments to remind myself of issues
This commit is contained in:
@@ -794,6 +794,7 @@ public partial class View
|
|||||||
|
|
||||||
private void LayoutSubview (View v, Size contentSize)
|
private void LayoutSubview (View v, Size contentSize)
|
||||||
{
|
{
|
||||||
|
// BUGBUG: Calling SetRelativeLayout before LayoutSubviews is problematic. Need to resolve.
|
||||||
v.SetRelativeLayout (contentSize);
|
v.SetRelativeLayout (contentSize);
|
||||||
v.LayoutSubviews ();
|
v.LayoutSubviews ();
|
||||||
v.LayoutNeeded = false;
|
v.LayoutNeeded = false;
|
||||||
|
|||||||
@@ -265,6 +265,13 @@ public class Slider<T> : View
|
|||||||
|
|
||||||
Enter += (s, e) => { };
|
Enter += (s, e) => { };
|
||||||
|
|
||||||
|
// BUGBUG: This should not be needed - Need to ensure SetRelativeLayout gets called during EndInit
|
||||||
|
Initialized += (s, e) =>
|
||||||
|
{
|
||||||
|
CalcSpacingConfig ();
|
||||||
|
SetContentSizeBestFit ();
|
||||||
|
};
|
||||||
|
|
||||||
LayoutStarted += (s, e) =>
|
LayoutStarted += (s, e) =>
|
||||||
{
|
{
|
||||||
CalcSpacingConfig ();
|
CalcSpacingConfig ();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class ContentScrolling : Scenario
|
|||||||
BorderStyle = LineStyle.Rounded;
|
BorderStyle = LineStyle.Rounded;
|
||||||
Arrangement = ViewArrangement.Fixed;
|
Arrangement = ViewArrangement.Fixed;
|
||||||
|
|
||||||
ContentSize = new (10, 40);
|
ContentSize = new (60, 40);
|
||||||
ViewportSettings |= ViewportSettings.ClearContentOnly;
|
ViewportSettings |= ViewportSettings.ClearContentOnly;
|
||||||
ViewportSettings |= ViewportSettings.ClipContentOnly;
|
ViewportSettings |= ViewportSettings.ClipContentOnly;
|
||||||
|
|
||||||
|
|||||||
@@ -508,8 +508,9 @@ public class SliderTests
|
|||||||
view.BeginInit ();
|
view.BeginInit ();
|
||||||
view.EndInit ();
|
view.EndInit ();
|
||||||
|
|
||||||
|
// BUGBUG: This should not be needed. EndInit should have called LayoutSubviews
|
||||||
|
// BUGBUG: and LayoutSubviews should have
|
||||||
view.LayoutSubviews ();
|
view.LayoutSubviews ();
|
||||||
slider.SetRelativeLayout(view.Viewport.Size);
|
|
||||||
|
|
||||||
Size expectedSize = slider.Frame.Size;
|
Size expectedSize = slider.Frame.Size;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user