Skip to content

Commit

Permalink
fix popup close on hidden segment (#330)
Browse files Browse the repository at this point in the history
* fix popup close

* fix for particular segment
  • Loading branch information
mgautam98 authored Apr 7, 2020
1 parent a5e0fac commit f1ae537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/viewer/uicallbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,8 @@ async function callback(data) {
loadAnnotationById(camic, d, null);
} else {
if (!d.layer) d.layer = camic.viewer.omanager.addOverlay(item);
// remove popup if segment is hidden
if ($UI.annotPopup.data && !d.isShow && $UI.annotPopup.data.id===d.item.id) $UI.annotPopup.close();
d.layer.isShow = d.isShow;
camic.viewer.omanager.updateView();
}
Expand Down

0 comments on commit f1ae537

Please sign in to comment.