Closed hiroyuki-sato closed 8 years ago
This code remains from the old old old version 1.0 which was written by @vivekbhagwat, you can ask him.
@weshatheleopard Thanks!!
Could you review this patch? https://github.com/weshatheleopard/rubyXL/pull/215
I'll set default height by myself if height is nil.
Why is this issue mission critical for you? What are you trying to do?
"Convenience methods" are intended to simplify the code you write, for the price of limiting things you can do. If you need the "raw" row height, you can just do row && row.ht
; you don't need a convenience method for that.
@weshatheleopard Thank you for replying.
I'll use row && row.ht
. It is simple.
I thought I can use get_column_width_raw
, I want to use get_row_height_raw
too.
Until I read source code, I didn't know get_row_height
return default value if it has not height value
The reason that get_column_width_raw
is that it is measured in pixels, while get_column_width
is measured in "characters", see http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx
row_height
is measured differently and does not really require complex conversion like that.
About default height value
13
. Is this size MS Excel on Windows?I'm using Excel 2011 on OSX. The height size is
18
.https://github.com/weshatheleopard/rubyXL/blob/master/lib/rubyXL/convenience_methods.rb#L384