lib/cyberarm_engine/ui/element.rb in cyberarm_engine-0.5.1 vs lib/cyberarm_engine/ui/element.rb in cyberarm_engine-0.6.0
- old
+ new
@@ -13,11 +13,11 @@
attr_reader :padding, :padding_left, :padding_right, :padding_top, :padding_bottom
attr_reader :margin, :margin_left, :margin_right, :margin_top, :margin_bottom
def initialize(options = {}, block = nil)
@parent = options[:parent] # parent Container (i.e. flow/stack)
- options = theme_defaults.merge(options)
+ options = theme_defaults(options)
@options = options
@block = block
@style = Style.new(options)
@focus = false
@@ -202,9 +202,13 @@
@root
end
def recalculate
raise "#{self.class}#recalculate was not overridden!"
+ end
+
+ def reposition
+ raise "#{self.class}#reposition was not overridden!"
end
def value
raise "#{self.class}#value was not overridden!"
end
\ No newline at end of file