Fix OHIF global variable definition bug in OHIF Viewer, moved resizeViewportElements to viewerbase

This commit is contained in:
Erik Ziegler committed 2015-12-15 10:20:57 -05:00
1 parent 37fa29cce4
commit 86c8a32e2a
8 files changed
+31 -48

No files matched your search

-13
View File
@@ -1,16 +1,3 @@
var resizeTimer;
// TODO= Move this and resizeViewportElements to viewerbase
function handleResize() {
// Avoid doing DOM manipulation during the resize handler
// because it is fired very often.
// Resizing is therefore performed 100 ms after the resize event stops.
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
resizeViewportElements();
}, 100);
}
Template.viewer.onCreated(function() {
// Attach the Window resize listener
$(window).on('resize', handleResize);