Hide details panel by default
Don't show the details panel when the overlay is activated, only when explicitly requested by clicking the info icon.
This commit is contained in:
parent
81d0474926
commit
9abc062a64
@ -355,6 +355,7 @@ Dash.prototype = {
|
|||||||
y: Panel.PANEL_HEIGHT + DASH_SECTION_PADDING,
|
y: Panel.PANEL_HEIGHT + DASH_SECTION_PADDING,
|
||||||
width: this._detailsWidth + SHADOW_WIDTH,
|
width: this._detailsWidth + SHADOW_WIDTH,
|
||||||
height: detailsHeight });
|
height: detailsHeight });
|
||||||
|
this._firstSelectAfterOverlayShow = true;
|
||||||
|
|
||||||
let detailsBackground = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
|
let detailsBackground = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
|
||||||
width: this._detailsWidth,
|
width: this._detailsWidth,
|
||||||
@ -408,7 +409,9 @@ Dash.prototype = {
|
|||||||
me._docDisplay.unsetSelected();
|
me._docDisplay.unsetSelected();
|
||||||
me._resultsDocsSection.display.unsetSelected();
|
me._resultsDocsSection.display.unsetSelected();
|
||||||
me._resultsAppsSection.display.unsetSelected();
|
me._resultsAppsSection.display.unsetSelected();
|
||||||
if (me._detailsPane.get_parent() == null) {
|
if (me._firstSelectAfterOverlayShow) {
|
||||||
|
me._firstSelectAfterOverlayShow = false;
|
||||||
|
} else if (me._detailsPane.get_parent() == null) {
|
||||||
me.actor.add_actor(me._detailsPane);
|
me.actor.add_actor(me._detailsPane);
|
||||||
me.emit('panes-displayed');
|
me.emit('panes-displayed');
|
||||||
}
|
}
|
||||||
@ -486,6 +489,7 @@ Dash.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
|
this._firstSelectAfterOverlayShow = true;
|
||||||
this._appsContent.hide();
|
this._appsContent.hide();
|
||||||
this._docDisplay.hide();
|
this._docDisplay.hide();
|
||||||
this.unsetMoreMode();
|
this.unsetMoreMode();
|
||||||
|
Loading…
Reference in New Issue
Block a user