Adjust size for some language

This commit is contained in:
Benau 2020-02-03 16:11:09 +08:00
parent b816f94269
commit 7ba8dfd0a0
3 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@
<spacer height="1f"/> <spacer height="1f"/>
<div width="100%" height="30%" layout="horizontal-row" > <div width="100%" height="30%" layout="horizontal-row" >
<div id="kartlist" width="90%" height="100%" layout="vertical-row" > <div id="kartlist" width="85%" height="100%" layout="vertical-row" >
<box proportion="2" width="100%" layout="vertical-row" padding="2"> <box proportion="2" width="100%" layout="vertical-row" padding="2">
<ribbon_grid id="karts" proportion="1" square_items="true" width="100%" align="center" <ribbon_grid id="karts" proportion="1" square_items="true" width="100%" align="center"
child_width="90" child_height="90" max_rows="2"/> child_width="90" child_height="90" max_rows="2"/>
@ -23,9 +23,9 @@
</tabs> </tabs>
<spacer width="100%" height="2%"/> <spacer width="100%" height="2%"/>
</div> </div>
<spacer width="2%"/> <spacer width="5%"/>
<icon-button id="continue" icon="gui/icons/green_check.png" text="Continue"/> <icon-button id="continue" icon="gui/icons/green_check.png" text="Continue"/>
<spacer width="2%"/> <spacer width="5%"/>
</div> </div>
</div> </div>

View File

@ -10,7 +10,7 @@
<spacer height="1f"/> <spacer height="1f"/>
<div width="100%" height="30%" layout="horizontal-row" > <div width="100%" height="30%" layout="horizontal-row" >
<div id="kartlist" width="90%" height="100%" layout="vertical-row" > <div id="kartlist" width="85%" height="100%" layout="vertical-row" >
<box proportion="2" width="100%" layout="vertical-row" padding="2"> <box proportion="2" width="100%" layout="vertical-row" padding="2">
<ribbon_grid id="karts" proportion="1" square_items="true" width="100%" align="center" <ribbon_grid id="karts" proportion="1" square_items="true" width="100%" align="center"
child_width="90" child_height="90" max_rows="2"/> child_width="90" child_height="90" max_rows="2"/>
@ -20,9 +20,9 @@
</tabs> </tabs>
<spacer width="100%" height="2%"/> <spacer width="100%" height="2%"/>
</div> </div>
<spacer width="2%"/> <spacer width="5%"/>
<icon-button id="continue" proportion="1" icon="gui/icons/green_check.png" text="Continue"/> <icon-button id="continue" proportion="1" icon="gui/icons/green_check.png" text="Continue"/>
<spacer width="2%"/> <spacer width="5%"/>
</div> </div>
</div> </div>
<progressbar x="2%" y="93%" id="timer" height="1f" width="96%"></progressbar> <progressbar x="2%" y="93%" id="timer" height="1f" width="96%"></progressbar>

View File

@ -270,7 +270,7 @@ void KartSelectionScreen::beforeAddingWidget()
{ {
if (useContinueButton()) if (useContinueButton())
{ {
getWidget("kartlist")->m_properties[GUIEngine::PROP_WIDTH] = "90%"; getWidget("kartlist")->m_properties[GUIEngine::PROP_WIDTH] = "85%";
getWidget("continue")->setVisible(true); getWidget("continue")->setVisible(true);
} }
else else