[gnome-shell] Fix the height allocated to the results sections
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Fix the height allocated to the results sections
- Date: Tue, 30 Jun 2009 20:49:41 +0000 (UTC)
commit e1fa61cd589e6322822f0ccbefab154c19e78913
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date: Thu Jun 18 20:01:49 2009 -0400
Fix the height allocated to the results sections
The results sections no longer include a label on top of them, so the
height of that label needs to be subtracted when specifying the height
for the sections. This ensures that display controls are positioned
correctly on the bottom of the section.
js/ui/overlay.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overlay.js b/js/ui/overlay.js
index cc129be..c40fbe0 100644
--- a/js/ui/overlay.js
+++ b/js/ui/overlay.js
@@ -312,8 +312,10 @@ Dash.prototype = {
this._docsSectionDefaultHeight = this._docsSection.height;
// The "more"/result area
- this._resultsAppsSection = new AppResults(this._displayWidth, resultsHeight);
- this._resultsDocsSection = new DocResults(this._displayWidth, resultsHeight);
+ // This area does not include this._resultsText which is part of resultsHeight, so we need to subtract the height
+ // of that text from the resultsHeight.
+ this._resultsAppsSection = new AppResults(this._displayWidth, resultsHeight - LABEL_HEIGHT - DASH_SECTION_PADDING);
+ this._resultsDocsSection = new DocResults(this._displayWidth, resultsHeight - LABEL_HEIGHT - DASH_SECTION_PADDING);
this._resultsPane = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
x: this._width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]