Bug 861783 - Removing watch expression of large object not possible via mouse, r=past

This commit is contained in:
Victor Porof 2013-04-18 09:35:26 +03:00
parent ca9d6e4dad
commit 0551ebb9c8
2 changed files with 10 additions and 3 deletions

View File

@ -404,8 +404,8 @@ VariablesView.prototype = {
return;
}
this._searchboxContainer.parentNode.removeChild(this._searchboxContainer);
this._searchboxNode.addEventListener("input", this._onSearchboxInput, false);
this._searchboxNode.addEventListener("keypress", this._onSearchboxKeyPress, false);
this._searchboxNode.removeEventListener("input", this._onSearchboxInput, false);
this._searchboxNode.removeEventListener("keypress", this._onSearchboxKeyPress, false);
this._searchboxContainer = null;
this._searchboxNode = null;
@ -1543,7 +1543,9 @@ Scope.prototype = {
* The click listener for this scope's title.
*/
_onClick: function S__onClick(e) {
if (e.target == this._inputNode) {
if (e.target == this._inputNode ||
e.target == this._editNode ||
e.target == this._deleteNode) {
return;
}
this.toggle();

View File

@ -36,6 +36,11 @@
-moz-user-focus: normal;
}
.variables-view-scope > .title,
.variable-or-property > .title {
overflow: hidden;
}
.variables-view-scope[non-header] > .title,
.variable-or-property[non-header] > .title,
.variable-or-property[non-match] > .title {