diff options
| author | Randy Morgan <[email protected]> | 2012-02-16 19:26:33 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-02-16 19:26:33 +0900 |
| commit | 1476fd8d0d9a04b03dbc8317d0e94ffa6853ca45 (patch) | |
| tree | da3c1f8da434d068330561192bbe0581c642c1bd /lib | |
| parent | 10a46e9956bb1a09bb3144845af9b35bb47726dc (diff) | |
| download | caxlsx-1476fd8d0d9a04b03dbc8317d0e94ffa6853ca45.tar.gz caxlsx-1476fd8d0d9a04b03dbc8317d0e94ffa6853ca45.zip | |
we need to be able to un-fix a column width
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb index eb6f55e9..d4bb6516 100644 --- a/lib/axlsx/workbook/worksheet/worksheet.rb +++ b/lib/axlsx/workbook/worksheet/worksheet.rb @@ -355,6 +355,8 @@ module Axlsx col[:fixed] = width if [Integer, Float, Fixnum].include?(width.class) # ignore default column widths and formula next if width == :ignore || (item.value.is_a?(String) && item.value.start_with?('=')) + # make sure we can turn that fixed with off! + col[:fixed] = nil if width == :auto cell_xf = cellXfs[item.style] font = fonts[cell_xf.fontId || 0] |
