mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Fix formspec field labels
This commit is contained in:
parent
54dbd78f90
commit
38d112033b
@ -843,7 +843,7 @@ void GUIFormSpecMenu::parsePwdField(parserData* data,std::string element) {
|
|||||||
Environment->setFocus(e);
|
Environment->setFocus(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (label.length() > 1)
|
if (label.length() >= 1)
|
||||||
{
|
{
|
||||||
rect.UpperLeftCorner.Y -= 15;
|
rect.UpperLeftCorner.Y -= 15;
|
||||||
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
||||||
@ -934,7 +934,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,std::vector<std::string>
|
|||||||
evt.KeyInput.PressedDown = true;
|
evt.KeyInput.PressedDown = true;
|
||||||
e->OnEvent(evt);
|
e->OnEvent(evt);
|
||||||
|
|
||||||
if (label.length() > 1)
|
if (label.length() >= 1)
|
||||||
{
|
{
|
||||||
rect.UpperLeftCorner.Y -= 15;
|
rect.UpperLeftCorner.Y -= 15;
|
||||||
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
||||||
@ -1026,7 +1026,7 @@ void GUIFormSpecMenu::parseTextArea(parserData* data,std::vector<std::string>& p
|
|||||||
e->OnEvent(evt);
|
e->OnEvent(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (label.length() > 1)
|
if (label.length() >= 1)
|
||||||
{
|
{
|
||||||
rect.UpperLeftCorner.Y -= 15;
|
rect.UpperLeftCorner.Y -= 15;
|
||||||
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;
|
||||||
|
Loading…
Reference in New Issue
Block a user