mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed a GUI component alignment issue for the text edit popups.
This commit is contained in:
parent
0c7e02e6f4
commit
05302052de
|
@ -86,11 +86,10 @@ GuiComplexTextEditPopup::GuiComplexTextEditPopup(
|
|||
|
||||
if (multiLine)
|
||||
textHeight *= 6;
|
||||
|
||||
mText->setSize(0, textHeight);
|
||||
|
||||
setSize(Renderer::getScreenWidth() * 0.75f,mTitle->getFont()->getHeight() +
|
||||
textHeight + mButtonGrid->getSize().y() + 220);
|
||||
setSize(Renderer::getScreenWidth() * 0.75f, mTitle->getFont()->getHeight() +
|
||||
textHeight + mButtonGrid->getSize().y() + mButtonGrid->getSize().y() * 1.85);
|
||||
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
|
||||
(Renderer::getScreenHeight() - mSize.y()) / 2);
|
||||
mText->startEditing();
|
||||
|
|
|
@ -63,7 +63,7 @@ GuiTextEditPopup::GuiTextEditPopup(
|
|||
mText->setSize(0, textHeight);
|
||||
|
||||
setSize(Renderer::getScreenWidth() * 0.5f, mTitle->getFont()->getHeight() +
|
||||
textHeight + mButtonGrid->getSize().y() + 40);
|
||||
textHeight + mButtonGrid->getSize().y() + mButtonGrid->getSize().y() / 2);
|
||||
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2, (Renderer::getScreenHeight() -
|
||||
mSize.y()) / 2);
|
||||
mText->startEditing();
|
||||
|
|
Loading…
Reference in a new issue