Багфикс переводчика

This commit is contained in:
Igor Timofeev
2017-09-01 16:07:33 +03:00
parent 3aa1bd4789
commit cf279e5a7d
3 changed files with 22 additions and 27 deletions

View File

@@ -1810,7 +1810,7 @@ local function dropDownMenuCalculateSizes(menu)
totalHeight = totalHeight + (menu.itemsContainer.children[i].type == GUI.dropDownMenuElementTypes.separator and 1 or menu.itemHeight)
menu.itemsContainer.children[i].width = menu.width
end
menu.height = math.min(totalHeight, menu.maximumHeight)
menu.height = math.min(totalHeight, menu.maximumHeight, buffer.height - menu.y)
menu.itemsContainer.width, menu.itemsContainer.height = menu.width, menu.height
menu.nextButton.localPosition.y = menu.height