Removed duplicate
This commit is contained in:
@@ -711,6 +711,10 @@ public class SkiaLabel : SkiaView
|
||||
|
||||
if (needsMultiLine)
|
||||
{
|
||||
var textBoundsDbg = new SKRect();
|
||||
paint.MeasureText(displayText, ref textBoundsDbg);
|
||||
if (displayText.StartsWith("Full XAML") || displayText.StartsWith("Shell nav"))
|
||||
Console.WriteLine($"[Label OnDraw] '{displayText.Substring(0, Math.Min(15, displayText.Length))}' textW={textBoundsDbg.Width:F0} boundsW={contentBounds.Width:F0} LineBreakMode={LineBreakMode}");
|
||||
DrawMultiLineText(canvas, paint, font, contentBounds, displayText);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -454,6 +454,8 @@ public class SkiaStackLayout : SkiaLayoutView
|
||||
// Horizontal stack: give each child its measured width
|
||||
// Don't constrain - let content overflow if needed (parent clips)
|
||||
var useWidth = childWidth;
|
||||
if (child is SkiaLabel lbl)
|
||||
Console.WriteLine($"[HStack Arrange] Label '{lbl.Text?.Substring(0, Math.Min(15, lbl.Text?.Length ?? 0))}' childWidth={childWidth:F0} contentWidth={contentWidth:F0} offset={offset:F0}");
|
||||
|
||||
// Respect child's VerticalOptions for horizontal layouts
|
||||
var useHeight = Math.Min(childHeight, contentHeight);
|
||||
|
||||
Reference in New Issue
Block a user