mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
removing duplicate
This commit is contained in:
parent
451075516d
commit
a7785a3029
@ -53,7 +53,7 @@ function onModalDialog(id, title, message, buttons, enterButton, escapeButton, c
|
||||
labelHeight = label:getHeight()
|
||||
end
|
||||
end
|
||||
choiceList:focusNextChild()
|
||||
choiceList:focusChild(choiceList:getFirstChild())
|
||||
|
||||
local buttonsWidth = 0
|
||||
for i = 1, #buttons do
|
||||
@ -78,7 +78,6 @@ function onModalDialog(id, title, message, buttons, enterButton, escapeButton, c
|
||||
if #choices > 0 then
|
||||
choiceList:setVisible(true)
|
||||
choiceScrollbar:setVisible(true)
|
||||
choiceList:focusChild(choiceList:getFirstChild())
|
||||
|
||||
additionalHeight = math.min(modalDialog.maximumChoices, math.max(modalDialog.minimumChoices, #choices)) * labelHeight
|
||||
additionalHeight = additionalHeight + choiceList:getPaddingTop() + choiceList:getPaddingBottom()
|
||||
|
Loading…
x
Reference in New Issue
Block a user