|
@@ -255,15 +255,9 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
|
|
|
colsXfIdList[c] = XfId
|
|
colsXfIdList[c] = XfId
|
|
|
|
|
|
|
|
var customWidth bool
|
|
var customWidth bool
|
|
|
- // TODO test
|
|
|
|
|
- var bestFit bool
|
|
|
|
|
if col.Width == 0 {
|
|
if col.Width == 0 {
|
|
|
col.Width = ColWidth
|
|
col.Width = ColWidth
|
|
|
customWidth = false
|
|
customWidth = false
|
|
|
- // TODO test
|
|
|
|
|
- if col.BestFit{
|
|
|
|
|
- bestFit = true
|
|
|
|
|
- }
|
|
|
|
|
} else {
|
|
} else {
|
|
|
customWidth = true
|
|
customWidth = true
|
|
|
}
|
|
}
|
|
@@ -272,7 +266,6 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
|
|
|
Max: col.Max,
|
|
Max: col.Max,
|
|
|
Hidden: col.Hidden,
|
|
Hidden: col.Hidden,
|
|
|
Width: col.Width,
|
|
Width: col.Width,
|
|
|
- BestFit: bestFit,
|
|
|
|
|
CustomWidth: customWidth,
|
|
CustomWidth: customWidth,
|
|
|
Collapsed: col.Collapsed,
|
|
Collapsed: col.Collapsed,
|
|
|
OutlineLevel: col.OutlineLevel,
|
|
OutlineLevel: col.OutlineLevel,
|