summaryrefslogtreecommitdiff
path: root/engine/UI/GridRow.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine/UI/GridRow.go')
-rw-r--r--engine/UI/GridRow.go6
1 files changed, 3 insertions, 3 deletions
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)
}