samples/sample36.rb in green_shoes-1.1.348 vs samples/sample36.rb in green_shoes-1.1.354
- old
+ new
@@ -22,18 +22,19 @@
toc[0...-1] << "\n"*5
end
def incident num
self.scroll_top = 0
+ self.scrolled = 0
num = num.to_i
stack margin_left: 190 do
banner "Incident"
para strong("No. #{num + 1}: #{INCIDENTS[num][0]}")
end
flow do
flow width: 180, margin_left: 10 do
- para *table_of_contents, size: 8
+ pinning para( *table_of_contents, size: 8 )
end
stack width: -180, margin_left: 10 do
INCIDENTS[num][1].split(/\n\n+/).each do |p|
para p