summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-13 22:28:58 +0900
committerRandy Morgan <[email protected]>2012-02-13 22:28:58 +0900
commit80459ca70930ee8522b8547669bbbe7aef5a12a4 (patch)
treedc5495352ba3e3b5dbb2c977e32c55f371397ab3 /examples
parenta78481741fa7b6bf999461a12cc5c9dce026ea49 (diff)
downloadcaxlsx-80459ca70930ee8522b8547669bbbe7aef5a12a4.tar.gz
caxlsx-80459ca70930ee8522b8547669bbbe7aef5a12a4.zip
Improve accessibility and stringency for column_widths editing.
Diffstat (limited to 'examples')
-rw-r--r--examples/example.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 9e4b0277..552a5fc9 100644
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -191,7 +191,7 @@
wb.add_worksheet(:name => "custom column widths") do |sheet|
sheet.add_row ["I use autowidth and am very wide", "I use a custom width and am narrow"]
- sheet.auto_fit_data[1][:fixed] = 3
+ sheet.column_widths [nil, 3]
end
##Validate and Serialize