Skip to content

Commit 6b23991

Browse files
committed
fix: adjust menu input bug to cover the full screen
1 parent 62a0aee commit 6b23991

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

modules/shared/MenuInput.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<OnEscapePressed>
1414
self:ClearFocusOnKey(true)
1515
</OnEscapePressed>
16+
<OnShow>
17+
-- original left and right texture has a ratio of 1:2.5
18+
local height = self:GetHeight()
19+
self.Left:SetSize(height / 2.5, height)
20+
self.Right:SetSize(height / 2.5, height)
21+
self.Middle:SetSize(height / 2.5, height)
22+
</OnShow>
1623
</Scripts>
1724
</EditBox>
1825
</Ui>

0 commit comments

Comments
 (0)