From a418c90cd499bb8019f121effddb37d9efdb26de Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 4 Aug 2012 16:58:39 +0100 Subject: [PATCH] Get rid of useless free space in search view --- src/search/SearchView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp index 2c56ae088..16d03ed3b 100644 --- a/src/search/SearchView.cpp +++ b/src/search/SearchView.cpp @@ -290,7 +290,7 @@ void SearchView::NotifyPageChanged(SearchModel * sender) void SearchView::NotifySaveListChanged(SearchModel * sender) { 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; vector saves = sender->GetSaveList(); @@ -341,8 +341,8 @@ void SearchView::NotifySaveListChanged(SearchModel * sender) delete errorLabel; errorLabel = NULL; } - buttonXOffset = 0; - buttonYOffset = 50; + buttonXOffset = buttonPadding; + buttonYOffset = 28; buttonAreaWidth = Size.X; buttonAreaHeight = Size.Y - buttonYOffset - 18; buttonWidth = (buttonAreaWidth/savesX) - buttonPadding*2;