Canvas Slider causes screen to jump down

4 replies · opened Jun 4, 2021

WWaylonCashJun 4, 2021

Hi! I'm in the process of updating a site from 5.x version of Canvas to 6.3. It's going well and your team helped me with creating a double top header (parent company endorsement bar and regular menu bar). I am experiencing a problem that I have not been able to troubleshot and am hoping you can help. When visiting this page after about 1 second the top section then jumps down about 1 inch and it's pretty jarring.

Here's the link: https://beta.connectionsbytsw.com/acquire-new-customers-inserts

It looks like it calculates the size of the slider, then after content loads it recalculates and adjusts the height? Or possible because I have introduced the double header I'm missing a CSS change that needs to be done?

Thanks for any help!

SSemicolon WebSTAFFJun 5, 2021

Hello,

Canvas 6.x allows Flexible Header Heights without any extra CSS which was not possible with Canvas v5.x. To avoid this jump, simply add a blank .header-wrap-clone DIV just after the .header-wrap DIV is closed. Example:

<header id="header" class="full-header">
	<div id="header-wrap">
		<div class="container">
			<div class="header-row">
				...
			</div>
		</div>
	</div>
	<div class="header-wrap-clone"></div>
</header>

and then add the following CSS Code:

.header-wrap-clone {
	height: 130px;
}

This will definitely fix this. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

WWaylonCashJun 7, 2021

Hello,

I've updated the code with your recommendations and it's still doing the shift after the page loads. I added the blank .header-wrap-clone and the additional CSS markup as you noted. Still no luck: https://beta.connectionsbytsw.com/acquire-new-customers-inserts

Any additional help is greatly appreciated. Thanks!

SSemicolon WebSTAFFJun 7, 2021

Please update your CSS to this:

.header-wrap-clone {
	height: 130px !important;
}

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

WWaylonCashJun 7, 2021

Awesome. That did the trick! Thanks again for your great support.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard