mirror of https://github.com/anoshenko/rui.git
Optimisation
This commit is contained in:
parent
9a6bb43800
commit
1ed86c069e
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue