| Index: third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| index e8f1b122757e6c398e684feba48b1fba910a3235..bed9940536a657292125376311ef65c51b4a2471 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| @@ -94,6 +94,8 @@ WebInspector.Widget.prototype = {
|
| */
|
| shouldHideOnDetach: function()
|
| {
|
| + if (!this.element.parentElement)
|
| + return false;
|
| if (this._hideOnDetach)
|
| return true;
|
| for (var child of this._children) {
|
| @@ -694,6 +696,7 @@ WebInspector.VBoxWithResizeCallback.prototype = {
|
| WebInspector.View = function(title, isWebComponent)
|
| {
|
| WebInspector.VBox.call(this, isWebComponent);
|
| + this.element.classList.add("view");
|
| this._title = title;
|
| /** @type {!Array<!WebInspector.ToolbarItem>} */
|
| this._toolbarItems = [];
|
|
|