Notifications
Clear all

Prevent Scroll to Top for iFrame Anchors  


Posts: 7
(@rogerr)
Active Member
Joined: 5 months ago

Small issue... I suspect that ScrolltoTop is overriding internal anchors within the iFrame content.

Is there a way to override for <a name="somename">ABC</a>

Clicking the anchor link at the top (<a href="#somename">ABC</a> and needing the scroll to go DOWN to the anchor link.

Any ideas??

3 Replies
TinyWebGallery
Posts: 171
Admin
(@admin)
Administrator
Joined: 11 years ago

Hi,

I don't understand. The scrollToTop of the plugin is connected to the onload method. At you scenario I don't know where the links are and how they are related.

Best, Michael

Reply
Posts: 7
(@rogerr)
Active Member
Joined: 5 months ago

https://www.rosentreter.website/family-tree/

A B C D E Etc. Links such as https://www.rosentreter.website/grampspublic/grampspublic-en/#Z not scrolling down.

 

Open Frame content independantly ( https://www.rosentreter.website/grampspublic/grampspublic-en/) in new window or tab and they do work.

Reply
TinyWebGallery
Posts: 171
Admin
(@admin)
Administrator
Joined: 11 years ago

If I click on w or Z it is scrolling down for me. The only problem is that you sticky header is again in the ways then ;). the #z is triggered by the browser. On thing you can do is to add custom Javascript which does after the scroll automatically scroll down again a little bit so the part is shwon again. 

btw. I see a configuration error still on your site in the logs (F12) : 
The configuration of "resize_on_element_resize" is invalid. The specified element #body-page could not be found or accessed. Please check your configuration.

Best, Michael

Reply