Skip to content

Commit a7ffa9f

Browse files
author
Daniel Herzog
committed
Close overlay when entry is not available anymore
1 parent 0bd613d commit a7ffa9f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/network/network_view.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -817,14 +817,18 @@ cls.NetworkDetailOverlayViewPrototype = function()
817817
{
818818
entry.check_to_get_body();
819819
container.clearAndRender(this._render_details_view(entry));
820-
}
821-
this.text_search.update_search();
820+
this.text_search.update_search();
821+
if (this._details_scroll_top)
822+
container.scrollTop = this._details_scroll_top;
822823

823-
if (this._details_scroll_top)
824-
container.scrollTop = this._details_scroll_top;
824+
if (this._details_scroll_left)
825+
container.scrollLeft = this._details_scroll_left;
825826

826-
if (this._details_scroll_left)
827-
container.scrollLeft = this._details_scroll_left;
827+
}
828+
else
829+
{
830+
this.hide();
831+
}
828832
}
829833
};
830834

0 commit comments

Comments
 (0)