Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
enell authored and vcellu committed Feb 15, 2022
1 parent 981c8a0 commit 1611e95
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ios/ContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,10 @@ class ContainerView: UIView {

func calculateDefaultColWidth() {
var resized = false
if var dataColumns = dataColumns {
let columns = dataColumns.count - 1
for i in 0...columns {
if dataColumns[i].width == 0 {
dataColumns[i].width = calculateAverageWidthForColumn(i)
resized = true
}
if let dataColumns = dataColumns {
for (i, var dataColumn) in dataColumns.enumerated() where dataColumn.width == 0 {
dataColumn.width = calculateAverageWidthForColumn(i)
resized = true
}
self.dataColumns = dataColumns

Expand Down

0 comments on commit 1611e95

Please sign in to comment.