Method: CyberarmEngine::Element#recalculate
- Defined in:
- lib/cyberarm_engine/ui/element.rb
#recalculate ⇒ Object
627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/cyberarm_engine/ui/element.rb', line 627 def recalculate old_width = width old_height = height stylize layout root.gui_state.request_recalculate if @parent && !is_a?(ToolTip) && (width != old_width || height != old_height) root.gui_state.request_repaint if width != old_width || height != old_height root.gui_state..recalculate if root.gui_state. && root.gui_state..parent == self end |