Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Can't scroll contents when window resized #62

Open
DaikiSuganuma opened this issue Feb 16, 2017 · 1 comment
Open

Can't scroll contents when window resized #62

DaikiSuganuma opened this issue Feb 16, 2017 · 1 comment

Comments

@DaikiSuganuma
Copy link

Thank you for great plugin.
I saw the issue in following steps.

  1. open offcanvas menu
  2. window resize. In Android, swipe up menu then header bar is hidden and "resize" event occur.
  3. automatically menu closed
  4. can't scroll contents

so I inserted a code in "transitionend" event.

this.target.on('transitionend', (function(_this) {
  return function() {
    if (_this.target.is(':not(.in)')) {
      _this.bodyOverflow(); // Insert this line
      return _this.target.height('');
    }
  };
})(this));

It works so far.
Is this good solution?

@ddv88
Copy link

ddv88 commented Jul 5, 2017

Confirmed. Menu automatically closing in all browsers with «floating» adress bar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants