1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 11:59:34 +00:00

Makes empty menu panels the proper size (Design Time).

This commit is contained in:
FellippeHeitor 2018-05-25 23:26:23 -03:00
parent 63ed2156b8
commit 3f323dd9e2

View file

@ -5316,6 +5316,9 @@ SUB __UI_ActivateMenu (This AS __UI_ControlTYPE, SelectFirstItem AS _BYTE)
IF SelectFirstItem AND NOT __UI_DesignMode AND TotalItems > 0 THEN
__UI_Focus = __UI_NextMenuItem(0)
ELSE
IF TotalItems = 0 THEN
Control(__UI_ActiveMenu).Width = __UI_MenuItemOffset * 2 + __UI_PrintWidth("Add new")
END IF
__UI_Focus = __UI_ActiveMenu
END IF
END IF