Fix a UI issue.

This commit is contained in:
qianlifeng
2014-03-20 21:41:30 +08:00
parent b3f3cd2ffd
commit 3b2e54a156
4 changed files with 49 additions and 57 deletions

View File

@@ -39,7 +39,7 @@ namespace Wox
int position = GetInsertLocation(result.Score);
lbResults.Items.Insert(position, result);
}
gridContainer.Margin = lbResults.Items.Count > 0 ? new Thickness { Top = 8 } : new Thickness { Top = 0 };
lbResults.Margin = lbResults.Items.Count > 0 ? new Thickness { Top = 8 } : new Thickness { Top = 0 };
SelectFirst();
}
@@ -150,7 +150,7 @@ namespace Wox
public void Clear()
{
lbResults.Items.Clear();
gridContainer.Margin = new Thickness { Top = 0 };
lbResults.Margin = new Thickness { Top = 0 };
}
private void lbResults_SelectionChanged(object sender, SelectionChangedEventArgs e)