Create thumbnails only when the tab is not focused

This commit is contained in:
yflory
2017-11-06 13:36:54 +01:00
parent a37e6c7979
commit 9060464f37
8 changed files with 120 additions and 88 deletions

View File

@@ -348,13 +348,11 @@ define([
getContainer: getThumbnailContainer,
filter: function (el, before) {
if (before) {
// Overflow visible to the parents makes it look better but
// it creates chaos in the editbale area
//$(el).parents().css('overflow', 'visible');
$(el).parents().css('overflow', 'visible');
$(el).css('max-height', Math.max(600, $(el).width()) + 'px');
return;
}
//$(el).parents().css('overflow', '');
$(el).parents().css('overflow', '');
$(el).css('max-height', '');
}
}