User tests: Successful: Unsuccessful:
In the Isis template, Bootstrap's scrollspy listener is used to affix the toolbar when the page scrolls down. Because of how the listener operates, the container is removed from the page layout which can cause a jump when scrolling and the affix action occurs.
This issue has been recently fixed in the joomla.org templates and now is being provided here for the Isis toolbar.
Pre-patch, note that when you scroll down a page, the toolbar jumps to the affix position a few pixels too early and that when the jump happens, the rest of the page content scrolls roughly 43 pixels (the height of the toolbar). Apply the patch and if necessary clear your cache to reload the updated media. With the patch applied, the scroll action should now be smooth and there is no page jump when the toolbar affixes itself to the top of the page.
Labels |
Added:
?
|
Category | ⇒ | Templates (admin) |
@infograf768 It's a side effect of how the height is figured out. The height of the div.subhead-collapse
container is set via JavaScript while the page is loaded, so adjusting the screen size like that will cause there to be some unwanted overlaps or extra margins (you can see this with the issue tracker's site too as you shorten the width down to a mobile viewport or when the page is loaded at the width of a mobile viewport then lengthened out to desktop size). The only way to properly account for that would be to have the JavaScript update the container height whenever the width is adjusted like that.
Is it something we really should introduce into the template though? Admittedly, design isn't my thing (the original fix for the .org templates came about through some Stackoverflow answers and tweaking of behaviors), I wouldn't think resizing the window in that manner would be a "normal" behavior that a template should account for.
Well, honestly playing like a monkey resizing my browser window is not something I usually do unless I'm under severe stress (or I want to test if everything is OK with my template), but...
If you want I can take a look at that and see if I can come out with something... Any initial hint, in case?
I just gave a quick look and in theory it shouldn't be difficult to do: just re-apply that unnamed inline function at the and of index.php when the window is resized. Could take the occasion to move it to the head... Just give me a day or two to check...
Any idea what that "hack sad times" is there for?
IIRC Kyle developed the template while Bootstrap 2.0 was the latest release. So the 2.1 note may be a reference to a bug that was fixed?
@mbabker Michael, I sent you mbabker#17 that fixes the issues with the sidebar when resizing.
More things I did are:
One more thing I tried without success was to move the code to the <head> using addScriptDeclaration() but the beast doesn't want to be tamed! @dgt41 Dimitris do you have any ideas why? Do you want to give it a try?
@mbabker Ooops... myabe I made a mistake: I pushed another commit to mbabker#17 fixing some code style and making code more readable, but before doing that I had merged my local branch with current staging, so my PR is now ahead by about 20 commits compared to your's PR branch... Is this a problem? If it is I can close my PR against you and create a new one... Sorry for the f**k-up...
When I test it in a little bit I can merge the right commits in.
Good! Again, sorry!!
Better. One issue now: when the toolbar isn't defined on a page, a JS error appears in the console (this can be seen on the dashboard).
Ouch! Missed that... let me see if I can fix it...
Try with mbabker#18...
That worked for me. Now to get some other tests I think we're good to go.
Now the problem is... "am I entitled to test this??"
One test to do: check that there are no nasty effects when a modal is displayed and the window is resized... I don't think so, but...
Well, the damn BS modal is not re-centered, but that happens without this PR too, so no regression
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-24 08:15:08 |
Works here. Thanks! Merging.
Labels |
Removed:
?
|
Thanks
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5486.