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