Skip to content

Commit

Permalink
[js:core] fix #2582 sync size of list view column headers on browser …
Browse files Browse the repository at this point in the history
…resize
  • Loading branch information
nao-pon committed Jul 14, 2018
1 parent 5090302 commit e19d72f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/elFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4232,7 +4232,13 @@ var elFinder = function(elm, opts, bootCallback) {
if (e.target === this) {
tm && cancelAnimationFrame(tm);
tm = requestAnimationFrame(function() {
self.trigger('resize', {width : node.width(), height : node.height()});
var prv = node.data('resizeSize') || {w: 0, h: 0},
size = {w: Math.round(node.width()), h: Math.round(node.height())};
node.data('resizeSize', size);
if (size.w !== prv.w || size.h !== prv.h) {
node.trigger('resize');
self.trigger('resize', {width : size.w, height : size.h});
}
});
}
})
Expand Down

0 comments on commit e19d72f

Please sign in to comment.