Create thumbnails only when the tab is not focused
This commit is contained in:
1 parent
a37e6c7979
commit
9060464f37
8 files changed
+120
-88
No files matched your search
+2
-4
@@ -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', '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user