mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2026-09-19 13:23:48 +00:00
Make elements publish the :size_changed event when they change their size
This commit is contained in:
@@ -215,6 +215,7 @@ module CyberarmEngine
|
||||
event(:blur)
|
||||
|
||||
event(:changed)
|
||||
event(:size_changed)
|
||||
end
|
||||
|
||||
def enter(_sender)
|
||||
@@ -576,6 +577,8 @@ module CyberarmEngine
|
||||
|
||||
@old_width = width
|
||||
@old_height = height
|
||||
|
||||
publish(:size_changed)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user