Master page header overlaps page when opening _blank

  • 1
  • Problem
  • Updated 3 years ago
  • Solved


Works fine when opened in the same window, or when refreshed.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Here is what is going on.   The header is getting built before the image loads.  The underlying page offset calculation is based on the header construction, when the image is loaded in and the header stretches - the offset is not being re-calculated. 

So if you add a wrapper around your image and give it the same height as your image - then the header will have the right information with which to make the offset calculation.   You can also give your header itself a defined height. 

Joy. 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Genius! thanks, Rob.
(Edited)