Fixing enlarged active viewport issue

This commit is contained in:
Bruno Alves de Faria committed 2016-08-20 10:48:01 -03:00
1 parent 479e420179
commit 2d6933fe66
2 files changed
+27 -11

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ setActiveViewport = function(element) {
// When an ActivateViewport event is fired, update the Meteor Session
// with the viewport index that it was fired from.
Session.set("activeViewport", viewportIndex);
Session.set('activeViewport', viewportIndex);
// Add the 'active' class to the parent container to highlight the active viewport
$('#imageViewerViewports .viewportContainer').removeClass('active');
@@ -21,5 +21,5 @@ setActiveViewport = function(element) {
// Set the div to focused, so keypress events are handled
//$(element).focus();
//.focus() event breaks in FF&IE
$(element).triggerHandler("focus");
};
$(element).triggerHandler('focus');
};