Open rmarzocchi84 opened 1 year ago
Can I do something else? It seems not related to this issue https://github.com/3liz/lizmap-web-client/issues/645
blind guess : some js events force the focus on the iframe, so the browser scroll to it
a solution can be made using custom js script, once the ui is loaded to force window.parent to scroll in top
lizMap.events.on({
uicreated: function(e) {
window.parent.scrollTo(0,0);
}
});
blind guess : some js events force the focus on the iframe, so the browser scroll to it
a solution can be made using custom js script, once the ui is loaded to force window.parent to scroll in top
lizMap.events.on({ uicreated: function(e) { window.parent.scrollTo(0,0); } });
It works but only for simple page.. I try also with widow.self.scrollTo(0,0);
but it doesn't work
sorry @Gustry do you expect more feedbacks from me? The solution proposed by @nworr doesn't work very well
@rmarzocchi84 I'm facing the same problem. Did you find a solution ?
unfortunately no
What is the bug?
When I use a lizmap map on an iframe inside a bootsrap HTML page the page automatically scroll on the lizmap map.
Steps to reproduce the issue
Here a simple example of a webpage which use a lizmap map (for the test I use a demo map, but you can try with each lizmap map):
Versions
Lizmap 3.5.X QGIS Server 3.22.X
Check Lizmap plugin
QGIS server version, only if the section above doesn't mention the QGIS Server version
No response
Operating system
Ubuntu 20.04
Browsers
Firefox, Chrome, Microsoft Edge
Browsers version
All recent versions
Relevant log output
No response