After closing the responsive preview, if you click on the navbar menu link it adds padding to the body.

See attached screenshot.

I was able to fix it by changing line 704 in responsive_preview.js from:

if (lastDisplaced.length) {
  displacement = parseInt(lastDisplaced.attr('data-offset-' + region), 10);
}

to:

if (lastDisplaced.length && lastDisplaced.attr('data-offset-' + region)) {
  displacement = parseInt(lastDisplaced.attr('data-offset-' + region), 10);
 }

Basically just checking if the data-offset-{region} is null.

CommentFileSizeAuthor
#1 responsive_preview.png331.86 KBbentekwork

Comments

bentekwork’s picture

Issue summary: View changes
StatusFileSize
new331.86 KB
jessebeach’s picture

Status: Active » Needs review

15k pixels! That's a pretty awesome bug I made :)

I think this issue has been cleared up through subsequent backporting work. Would you mind retesting?

jessebeach’s picture

Status: Needs review » Fixed

Please reopen if you find that this issue has not been fixed in the development branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.