Add button/hotkey to show/hide tools in viewports

This commit is contained in:
Erik Ziegler committed 2015-12-11 17:55:26 +01:00
1 parent ba05a3d21e
commit b2d4812dd0
8 files changed
+119 -99

No files matched your search

@@ -1,15 +1,9 @@
// Resize viewport elements
resizeViewportElements = function() {
viewportResizeTimer = setTimeout(function() {
var elements = $('.imageViewerViewport');
elements.each(function(index) {
var element = this;
if (!element) {
return;
}
var elements = $('.imageViewerViewport').not('.empty');
elements.each(function(index, element) {
cornerstone.resize(element, true);
});
}, 1);
};