Closed yskarpathiotis closed 5 years ago
I also encountered that. About alignment, it seems that you can avoid the phenomenon by writing the following monkey patch.
module RubyXL
module WorkbookConvenienceMethods
def modify_alignment(style_index, &block)
xf = cell_xfs[style_index || 0].dup
xf.alignment = RubyXL::Alignment.new
yield(xf.alignment)
xf.apply_alignment = true
register_new_xf(xf)
end
end
end
I have noticed this behavior for several other attributes as well (horizontal_alignment for example). I wasnt sure if this is expected functionality. The README implies that this should be able to get set at a cell level.