lib/cyberarm_engine/ui/label.rb in cyberarm_engine-0.2.0 vs lib/cyberarm_engine/ui/label.rb in cyberarm_engine-0.3.0
- old
+ new
@@ -28,7 +28,16 @@
end
def value
@text.text
end
+
+ def value=(value)
+ @text.text = value
+
+ old_width, old_height = width, height
+ recalculate
+
+ root.recalculate if old_width != width || old_height != height
+ end
end
end
\ No newline at end of file