fix widget alignment in UIDialog

This commit is contained in:
thrust26 2019-05-13 20:14:25 +02:00
parent c0c95c0c15
commit 1e8f62d677
1 changed files with 2 additions and 4 deletions

View File

@ -203,11 +203,9 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
myOpenBrowserButton = new ButtonWidget(myTab, font, xpos, ypos, bwidth, buttonHeight,
"Image path" + ELLIPSIS, kChooseSnapLoadDirCmd);
wid.push_back(myOpenBrowserButton);
//ypos += lineHeight + 4;
xpos = myOpenBrowserButton->getRight() + 8;
mySnapLoadPath = new EditTextWidget(myTab, font, xpos, ypos + 1,
_w - xpos - HBORDER - 2, lineHeight, "");
mySnapLoadPath = new EditTextWidget(myTab, font, HBORDER + lwidth, ypos + 1,
_w - lwidth - HBORDER * 2 - 2, lineHeight, "");
wid.push_back(mySnapLoadPath);
ypos += lineHeight + V_GAP * 4;