# File raggle, line 3226 def scroll_bottom # This is a *terrible* way to figure out how many lines of text we'll end # up with.., XXX put me somewhere better. item = @items[0] item = {} if item == nil h,s = dimensions[1], 0 %w{title url date}.each do |key| s += 1 if item.has_key?(key) end s += item['fmt_content_num_lines'] || reflow_string(item['content']).lines s += 1 @offset = s - (h - 2) draw_items end