Get rid of useless free space in search view
This commit is contained in:
parent
f2f4278932
commit
a418c90cd4
@ -290,7 +290,7 @@ void SearchView::NotifyPageChanged(SearchModel * sender)
|
|||||||
void SearchView::NotifySaveListChanged(SearchModel * sender)
|
void SearchView::NotifySaveListChanged(SearchModel * sender)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int buttonWidth, buttonHeight, saveX = 0, saveY = 0, savesX = 5, savesY = 4, buttonPadding = 2;
|
int buttonWidth, buttonHeight, saveX = 0, saveY = 0, savesX = 5, savesY = 4, buttonPadding = 1;
|
||||||
int buttonAreaWidth, buttonAreaHeight, buttonXOffset, buttonYOffset;
|
int buttonAreaWidth, buttonAreaHeight, buttonXOffset, buttonYOffset;
|
||||||
|
|
||||||
vector<SaveInfo*> saves = sender->GetSaveList();
|
vector<SaveInfo*> saves = sender->GetSaveList();
|
||||||
@ -341,8 +341,8 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
|
|||||||
delete errorLabel;
|
delete errorLabel;
|
||||||
errorLabel = NULL;
|
errorLabel = NULL;
|
||||||
}
|
}
|
||||||
buttonXOffset = 0;
|
buttonXOffset = buttonPadding;
|
||||||
buttonYOffset = 50;
|
buttonYOffset = 28;
|
||||||
buttonAreaWidth = Size.X;
|
buttonAreaWidth = Size.X;
|
||||||
buttonAreaHeight = Size.Y - buttonYOffset - 18;
|
buttonAreaHeight = Size.Y - buttonYOffset - 18;
|
||||||
buttonWidth = (buttonAreaWidth/savesX) - buttonPadding*2;
|
buttonWidth = (buttonAreaWidth/savesX) - buttonPadding*2;
|
||||||
|
Loading…
Reference in New Issue
Block a user