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()
|
width := adapter.GridColumnCount()
|
||||||
height := adapter.GridRowCount()
|
height := adapter.GridRowCount()
|
||||||
for column := 0; column < width; column++ {
|
for column := range width {
|
||||||
for row := 0; row < height; row++ {
|
for row := range height {
|
||||||
if view := adapter.GridCellContent(row, column, session); view != nil {
|
if view := adapter.GridCellContent(row, column, session); view != nil {
|
||||||
view.setParentID(htmlID)
|
view.setParentID(htmlID)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1135,7 +1135,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
|
||||||
}
|
}
|
||||||
buffer.WriteString(">")
|
buffer.WriteString(">")
|
||||||
|
|
||||||
for column := 0; column < columnCount; column++ {
|
for column := range columnCount {
|
||||||
ignore := false
|
ignore := false
|
||||||
for _, cell := range ignoreCells {
|
for _, cell := range ignoreCells {
|
||||||
if cell.row == row && cell.column == column {
|
if cell.row == row && cell.column == column {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue