-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masonry intermittently does not arrange blocks upon page load #2
Comments
I have not seen this issue in a long time. Since we just merged a new way of loading (#5) and that tested successfully, I think this is okay to close. |
I'm seeing an issue, it's possible this is the same one. With MW 1.27, I'm getting the blocks arranged in a vertical line, they aren't making use of the horizontal space. Is that the same thing you were seeing? |
Sorry I didn't notice your comment until just now. I think you're describing the same behavior. Is it consistent or intermittent? Any console or debug messages? |
It's 100% consistent, which is convenient :) It looks like this: The console does indeed throw an exception: TypeError: EventEmitter is not a constructor Screenshot from the console: I can't see much in the apache logs or mw debug log that might appear relevant. Happy as ever to provide any extras info. :) |
I'm seeing this exact behavior as well. I have no idea if this is useful (I know very little about JavaScript), but I got this out of Chrome: |
@bryandamon: Have you upgraded MasonryMainPage? What version are you on? If you're using git you can do |
I still experience this issue. MW 1.27.1 here, and MasonryMainPage is at commit 9837244. I've checked it in several browsers, same issue. The js console complains about:
I noticed the (new) notice in the MasonryMainPage README to install the ImagesLoaded library; I dropped that in my extensions folder. Wasn't entirely sure how to load it so I dropped a |
Not composer, but need to use the new MediaWiki method of loading extensions, e.g.
Sorry this isn't listed in the docs. I've been trying to get several things updated to current MediaWiki versions and I just created an issue against Extension:ImagesLoaded to remember to circle back and add docs. Pull requests welcome. :) Note that MasonryMainPage can be loaded in the above method, as well, but does not require it. |
For more info on extension registration: https://www.mediawiki.org/wiki/Manual:Extension_registration |
Aye, that fixed it! ty James! Minor defail in case anyone else is tracking this issue, it's |
Hi @jamesmontalvo3, I just upgraded to commit |
Quick update. I also loaded MasonryMainPage using Note, it's late, it very well could have done the same (formatting and stacking) after the update to commit |
@bryandamon what are you seeing if you open your browser's javascript console? How to open it differs based on your browser and operating system. After you open it you may need to refresh your MasonryMainPage page to see if it gives any errors. If there are many errors, feel free to just screenshot them. |
@jamesmontalvo3, I do have the following error: I believe it has to do with an incompatibility between MW 1.28.2 and the version of SMW I have now, but maybe it's also creating a problem with MasonryMainPage as well? UpdateUninstalling SMW removed the above warning, but the MasonryMainPage issue remains. |
When loading a MediaWiki page that uses MasonryMainPage, sometimes masonry will arrange the blocks and sometimes it will not. It is not clear if there is a conflict with div IDs, CSS, or something within the masonry or imagesLoaded scripts.
The text was updated successfully, but these errors were encountered: