How about setting a CSS class that would apply an appropriate amount of top padding to the content based on the viewport breakpoint? Then you could avoid needing a resize event handler?