Sha256: c1966385866fc53341f14bd4d138dd020f500f9a3a366d58dd51e0c7ef0b22af

Contents?: true

Size: 290 Bytes

Versions: 68

Compression:

Stored size: 290 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)
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
atome-0.5.7.3.1 vendor/assets/application/examples/overflow.rb
atome-0.5.7.3.0 vendor/assets/application/examples/overflow.rb
atome-0.5.7.1.8 vendor/assets/application/examples/scroll.rb
atome-0.5.7.1.7 vendor/assets/application/examples/scroll.rb
atome-0.5.7.1.0 vendor/assets/application/examples/scroll.rb
atome-0.5.7.0.7 vendor/assets/application/examples/scroll.rb
atome-0.5.7.0.5 vendor/assets/application/examples/scroll.rb
atome-0.5.7.0.4 vendor/assets/application/examples/scroll.rb
atome-0.5.7.0.3 vendor/assets/application/examples/scroll.rb
atome-0.5.7.0.2 vendor/assets/application/examples/scroll.rb
atome-0.5.6.8.7 vendor/assets/application/examples/scroll.rb
atome-0.5.6.8.6 vendor/assets/application/examples/scroll.rb
atome-0.5.6.8.5 vendor/assets/application/examples/scroll.rb
atome-0.5.6.8.3 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.8 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.7 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.6 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.5 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.4 vendor/assets/application/examples/scroll.rb
atome-0.5.6.7.3 vendor/assets/application/examples/scroll.rb