Pageable icon indicating copy to clipboard operation
Pageable copied to clipboard

Resizing Issue

Open singhgulshan opened this issue 7 years ago • 7 comments
trafficstars

After resizing the browser window when again maximize the window. it remains in same size with scroll bar. screenshot from 2018-10-25 16-47-36

singhgulshan avatar Oct 25 '18 11:10 singhgulshan

Need your OS and Chrome version so I can test.

Mobius1 avatar Oct 25 '18 14:10 Mobius1

Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial

Chrome: Version 70.0.3538.77 (Official Build) (64-bit)

singhgulshan avatar Oct 25 '18 15:10 singhgulshan

I only have access to Windows, iOS and Centos 7 so I can't test on Ubuntu. Is the "update" event flashing for you on the playground page when resizing? Are there any errors in Chrome's console?

Mobius1 avatar Oct 26 '18 06:10 Mobius1

Yes update event is flashing and there are no errors in chrome console.

PS: problem resolves when we open chrome console and close it.

singhgulshan avatar Oct 26 '18 06:10 singhgulshan

It's strange that opening the console is triggering the resize, but not resizing the window itself. I'll have to see if I can install Ubuntu on one of my servers and do some testing.

Mobius1 avatar Oct 27 '18 07:10 Mobius1

Me too! I'm using Chrome version 71 and Windows 10,

This problem occurs intermittently when changing the window size. Refreshing will resolve the problem. My guess is that the following code will fix it.

'window.addEventListener ("resize", this.callbacks.update, false);

Pageable.prototype.update = function () {
  ...
};

dvlpr91 avatar Dec 21 '18 01:12 dvlpr91

I can confirm the ops behaviour same platform (ubuntu as well)

Running window.dispatchEvent(new Event('resize')); in the console fixes it

GiorgosK avatar Mar 20 '19 15:03 GiorgosK