When I add a hyperlink
in the iframe html using href=“#elementId” linking to another part of the
iframe the toolbar window breaks and looses the top part with the
maximise/minimise on clicking. See below:
I think the hyperlink is
loading the html from the iframe in the main content area rather than leaning
it in the iframe. Anyone got any pointers with how to fix this? UPDATE:
Interestingly if you change the iframes source to point to the anchor link you
get the same issue.
Hello @CaptMatto , I think you are talking about this package ? I
used SU8 and your development branch on your Github reposity to test and I
wasn’t abble to reproduce this behaviour. All it’s working for me in SU8 SU8
will be available in a few hours. Once you have installed it, can you try
again and tell me if the problem is still there? Thanks, Regards, Boris
Hi Boris Thanks so much for your answer and coming back to me Is indeed
that package and I’m running SU8 Beta. I’ve managed to kind of circumvent the
issue by adding some CSS to the iframe. It looks like when you click an anchor
link in the iframe it is moving the physical panel up when it scrolls down to
the anchor, the addition of the CSS below is a slight work around that I found
after posting. I’ve basically removed 60px from the iframe.
I would use normal html pages but I couldn’t get the panel to load a new html
page so had to use the iframe approach. Many thanks for the great resource
here! Regards, Matt
Just a quick note to say I have moved over the SU8 release rather than the
Beta and my CSS above is working as an interim fix but I’m not sure if this is
a bug in the Custom Panel rendering or whether it’s my coding!