Sha256: 5d6b16c47fc7ace5d69e7d46be6d785e1465947c8ad8482f13b3a875f3a58e4c
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true class Shoes module Mock class Button include Shoes::Mock::CommonMethods include Shoes::Mock::Clickable def initialize(dsl, _parent) # For whatever reason the SWT button sets sizes back during initialize # and at least one test (for the ask dialog which runs a full Shoes.app) # relies on that sizing being set for positioning logic to run. # # Best I can tell, it doesn't matter *what* the values are, as long as # they're there. dsl.width = 0 unless dsl.width dsl.height = 0 unless dsl.height end def enabled(_value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems