Method: Row#resize
- Defined in:
- lib/row.rb
#resize ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/row.rb', line 53 def resize() if(@cells && ! @cells.empty? ) if(@cells.length == 1 ) @ideal_height = @cells[0].ideal_height else @ideal_height = @cells.max{|c1, c2| c1.ideal_height <=> c2.ideal_height}.ideal_height end @height = @ideal_height end @height ||= @@DEF_HEIGHT end |