From e1fa61cd589e6322822f0ccbefab154c19e78913 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya <marinaz@redhat.com> Date: Thu, 18 Jun 2009 20:01:49 -0400 Subject: [PATCH] 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 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index cc129bee6..c40fbe0ef 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,