Skip to content

Commit 95de0f1

Browse files
authored
Merge pull request #2640 from mneunomne/#2628
fix logger resize issue
2 parents 47116c5 + 6017090 commit 95de0f1

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/js/logger-ui.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,37 +3093,6 @@ const keyColorPopup = (( ) => {
30933093

30943094
/******************************************************************************/
30953095

3096-
3097-
logger.resize = (function() {
3098-
let timer;
3099-
3100-
const resize = function() {
3101-
const vrect = dom.body.getBoundingClientRect();
3102-
for ( const elem of qsa$('.vscrollable') ) {
3103-
const crect = elem.getBoundingClientRect();
3104-
const dh = crect.bottom - vrect.bottom;
3105-
if ( dh === 0 ) { continue; }
3106-
elem.style.height = Math.ceil(crect.height - dh) + 'px';
3107-
}
3108-
};
3109-
3110-
const resizeAsync = function() {
3111-
if ( timer !== undefined ) { return; }
3112-
timer = self.requestAnimationFrame(( ) => {
3113-
timer = undefined;
3114-
resize();
3115-
});
3116-
};
3117-
3118-
resizeAsync();
3119-
3120-
dom.on(window, 'resize', resizeAsync, { passive: true });
3121-
3122-
return resizeAsync;
3123-
})();
3124-
3125-
/******************************************************************************/
3126-
31273096
const grabView = function() {
31283097
if ( logger.ownerId === undefined ) {
31293098
logger.ownerId = Date.now();

0 commit comments

Comments
 (0)