vlang / ui

A cross-platform UI library written in V
MIT License
2.31k stars 154 forks source link

fix: `menu` size doesn't update when items added dynamically #529

Closed ArtemkaKun closed 1 year ago

ArtemkaKun commented 1 year ago

This PR introduces a potentially dirty fix. When items are added to the menu dynamically, them menu size wasn't updated. This PR change - is to call update_size function from add_item function after item was added