Sha256: d21af146ba6d3065f4609ef1e6ef7a72837d4eb4f3c61da6c07d606498c6a356

Contents?: true

Size: 312 Bytes

Versions: 13

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

b = box({ id: :the_container, width: 300, height: 300 })
b.box({top: 500, color: :red})
cc=b.circle({ top: 160, id: :the_circle })

initial_height=cc.height
b.overflow(:scroll) do |event|
  new_height = initial_height + event[:top]
  cc.height(new_height)
  {left: event[:top]}
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
atome-0.5.7.5.4 vendor/assets/application/examples/overflow.rb
atome-0.5.7.5.3 vendor/assets/application/examples/overflow.rb
atome-0.5.7.5.1 vendor/assets/application/examples/overflow.rb
atome-0.5.7.4.8 vendor/assets/application/examples/overflow.rb
atome-0.5.7.4.7 vendor/assets/application/examples/overflow.rb
atome-0.5.7.4.6 vendor/assets/application/examples/overflow.rb
atome-0.5.7.4.3 vendor/assets/application/examples/overflow.rb
atome-0.5.7.4.2 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.9 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.6 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.5 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.3 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.2 vendor/assets/application/examples/overflow.rb