You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm getting some wrong positioning when using the "north" setting. I noticed that when the page is longer than the screen space and there are paddings/margins in other elements, the positioning for north (n, ne, nw) are wrongly calculated. At first I thought it was something related to the use of LightGalleryJS plugin, since in the website I'm building it only occurred after attaching the gallery to the elements (which adds some hidden elements in the DOM), but I tested it with this fiddle in your page and it's also happening, not even changing anything at all. I've reproduced your fiddle in a test.html and tested it in Chrome and Firefox (2 different engines) with the same results. For some reason, in the fiddle doesn't happen, neither in all pages in my website, which is strange.
My screen resolution: 1600x900
Chrome (Ubuntu & Windows): Versión 96.0.4664.45
Firefox (Ubuntu): 95.0b12
OS tested: Linux (Ubuntu 18.04) and Windows 10
PowerTip: 1.3.1 (tried also with 1.3.0 and 1.2.0)
jQuery: 3.6.0 (tried also with 1.x and 2.x)
The test.html file (a copy&paste of your fiddle + cdn for the libraries + margin-top: 200px just to make it more noticeable) test.zip
In Chrome (Windows) it doesn't even show at all the north labels (the other ones work as expected):
In Chrome (Ubuntu) it shows off over the element (the other ones also work as expected). Same in FF:
I've been looking around the reported issues and I found this one and this one which are very similar to what's happening here, with the difference that the body tag is static by default here.
Do you see it wrong too in the attached test.html? Thank you!
The text was updated successfully, but these errors were encountered:
The file in your example is missing the HTML DOCTYPE declaration, which throws the browser in to quirks mode, an unsupported scenario because of all of the... quirks.
Adding this line to the beginning of the test.html file resolves the issue for me:
Thank you for your fast answer. You are right. I've also realized that this other plugin is wrongly changing the body tag to "relative" and that's the root cause. So nevermind... PS: Wouldn't this fix this issue with relative position?
That makes sense. If the other plugin is adding position: relative; to the HTML <body> tag then it would cause a similar failure. I'm glad that you have a resolution coming for that issue.
And yes, that pull request you linked is an attempt to support the cases where there is a non-default CSS position value set on the <body> tag. But it is a big and high risk pull request that touches a lot of moving parts, and fixes a relatively small edge case. I have been sitting on that PR for too long, but I haven't followed up with the lengthy and detailed review/testing pass it would take to land it. At this point I'm not sure that I ever will, but I'll take this conversation as a vote to merge it. :)
Hi! I'm getting some wrong positioning when using the "north" setting. I noticed that when the page is longer than the screen space and there are paddings/margins in other elements, the positioning for north (n, ne, nw) are wrongly calculated. At first I thought it was something related to the use of LightGalleryJS plugin, since in the website I'm building it only occurred after attaching the gallery to the elements (which adds some hidden elements in the DOM), but I tested it with this fiddle in your page and it's also happening, not even changing anything at all. I've reproduced your fiddle in a test.html and tested it in Chrome and Firefox (2 different engines) with the same results. For some reason, in the fiddle doesn't happen, neither in all pages in my website, which is strange.
My screen resolution: 1600x900
Chrome (Ubuntu & Windows): Versión 96.0.4664.45
Firefox (Ubuntu): 95.0b12
OS tested: Linux (Ubuntu 18.04) and Windows 10
PowerTip: 1.3.1 (tried also with 1.3.0 and 1.2.0)
jQuery: 3.6.0 (tried also with 1.x and 2.x)
The test.html file (a copy&paste of your fiddle + cdn for the libraries + margin-top: 200px just to make it more noticeable)
test.zip
In Chrome (Windows) it doesn't even show at all the north labels (the other ones work as expected):
In Chrome (Ubuntu) it shows off over the element (the other ones also work as expected). Same in FF:
I've been looking around the reported issues and I found this one and this one which are very similar to what's happening here, with the difference that the body tag is static by default here.
Do you see it wrong too in the attached test.html? Thank you!
The text was updated successfully, but these errors were encountered: