| Index: Source/devtools/front_end/ui/View.js
|
| diff --git a/Source/devtools/front_end/ui/View.js b/Source/devtools/front_end/ui/View.js
|
| index 611e1ae8c1d900a2defc39fcdb813e7137492c80..1606d72473015cef4d79b448b976a7182e8f569a 100644
|
| --- a/Source/devtools/front_end/ui/View.js
|
| +++ b/Source/devtools/front_end/ui/View.js
|
| @@ -106,6 +106,20 @@ WebInspector.View.prototype = {
|
| return this._isShowing;
|
| },
|
|
|
| + /**
|
| + * @return {boolean}
|
| + */
|
| + _shouldHideOnDetach: function()
|
| + {
|
| + if (this._hideOnDetach)
|
| + return true;
|
| + for (var child of this._children) {
|
| + if (child._shouldHideOnDetach())
|
| + return true;
|
| + }
|
| + return false;
|
| + },
|
| +
|
| setHideOnDetach: function()
|
| {
|
| this._hideOnDetach = true;
|
| @@ -272,7 +286,7 @@ WebInspector.View.prototype = {
|
| if (this._parentIsShowing())
|
| this._processWillHide();
|
|
|
| - if (this._hideOnDetach && !overrideHideOnDetach) {
|
| + if (!overrideHideOnDetach && this._shouldHideOnDetach()) {
|
| this.element.classList.remove("visible");
|
| this._visible = false;
|
| if (this._parentIsShowing())
|
|
|