Method: View.enlarge_internal
- Defined in:
- lib/xiki/view.rb
.enlarge_internal(direction, ws, selected, biggest, small) ⇒ Object
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/xiki/view.rb', line 146 def self.enlarge_internal direction, ws, selected, biggest, small ws = ws.reverse if direction != :up 3.times do ws.each_with_index do |w, i| # If current window, set to remaining if w == selected height = biggest $el.set_window_text_height w, height else # Other small windows height = small - 1 $el.set_window_text_height w, height end end end end |