From 3f6bf25f2ed5fc5626c46a4218cc1d627ec401c2 Mon Sep 17 00:00:00 2001 From: physcik Date: Fri, 27 Mar 2026 13:52:07 +0500 Subject: String() error fix --- engine/UI/GridRow.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/UI/GridRow.go') diff --git a/engine/UI/GridRow.go b/engine/UI/GridRow.go index 4940948..58d834d 100644 --- a/engine/UI/GridRow.go +++ b/engine/UI/GridRow.go @@ -76,10 +76,10 @@ func (base *GridRow) RecalculateCache(span *rl.Rectangle) { X: float32(rl.GetScreenWidth()), Y: float32(rl.GetScreenHeight()), } - rl.TraceLog(rl.LogInfo, "Span: %vx%v \tPadding: %v", span.Width, span.Height, *base.Style.Padding) + // rl.TraceLog(rl.LogInfo, "Span: %vx%v \tPadding: %v", span.Width, span.Height, *base.Style.Padding) base.cache.CalculateOffsets(span.Width, span.Height, *base.Style.Padding, *base.Style.Padding) var weightToScale = getWeightToPixelsRatio(base, base.cache.Width) - rl.TraceLog(rl.LogInfo, "Ratio: %v", weightToScale) + // rl.TraceLog(rl.LogInfo, "Ratio: %v", weightToScale) var spacingPx = base.Spacing * span.Width base.cache.CalculateRowsLocations(base.Objects, weightToScale, spacingPx, span.X) } @@ -87,7 +87,7 @@ func (base *GridRow) RecalculateCache(span *rl.Rectangle) { func (base GridRow) String() string { var outp, jsonErr = json.Marshal(base) if jsonErr != nil { - return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error()) + return fmt.Sprintf("Failed to parse grid row: %s", jsonErr.Error()) } return string(outp) } -- cgit v1.3