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.
This commit is contained in:
parent
c41902c188
commit
81d0474926
@ -312,8 +312,10 @@ Dash.prototype = {
|
|||||||
this._docsSectionDefaultHeight = this._docsSection.height;
|
this._docsSectionDefaultHeight = this._docsSection.height;
|
||||||
|
|
||||||
// The "more"/result area
|
// The "more"/result area
|
||||||
this._resultsAppsSection = new AppResults(this._displayWidth, resultsHeight);
|
// This area does not include this._resultsText which is part of resultsHeight, so we need to subtract the height
|
||||||
this._resultsDocsSection = new DocResults(this._displayWidth, resultsHeight);
|
// 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,
|
this._resultsPane = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
|
||||||
x: this._width,
|
x: this._width,
|
||||||
|
Loading…
Reference in New Issue
Block a user