From 1ed86c069e127f2e437c8d99a1a70ff03a42e23c Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:16:36 +0300 Subject: [PATCH] Optimisation --- gridLayout.go | 4 ++-- tableView.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gridLayout.go b/gridLayout.go index 13f4742..3d5f403 100644 --- a/gridLayout.go +++ b/gridLayout.go @@ -414,8 +414,8 @@ func (gridLayout *gridLayoutData) createGridContent() bool { width := adapter.GridColumnCount() height := adapter.GridRowCount() - for column := 0; column < width; column++ { - for row := 0; row < height; row++ { + for column := range width { + for row := range height { if view := adapter.GridCellContent(row, column, session); view != nil { view.setParentID(htmlID) diff --git a/tableView.go b/tableView.go index ec33d96..931d7cb 100644 --- a/tableView.go +++ b/tableView.go @@ -1135,7 +1135,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) { } buffer.WriteString(">") - for column := 0; column < columnCount; column++ { + for column := range columnCount { ignore := false for _, cell := range ignoreCells { if cell.row == row && cell.column == column {