Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Dara: Slider overlapping top of content #169

Closed
thesacredpath opened this issue Jun 20, 2018 · 12 comments
Closed

Dara: Slider overlapping top of content #169

thesacredpath opened this issue Jun 20, 2018 · 12 comments
Labels
Support [Type] Bug Something isn't working
Milestone

Comments

@thesacredpath
Copy link

I've not been able to reliably reproduce this in Chrome, Safari, or the Firefox regular version, but can in Firefox Developer Edition nearly every time. I was able to see it once in Chrome.

Steps to replicate

  1. Clear FF Dev cache and then visit the Dara Demo site: https://darademo.wordpress.com
  2. Content is tucked up under the slider. Click on a menu item and then go back to home page and the issue does not occur.
  3. Clear browser cache and then reload page and nearly every time the issue will reoccur.

Screenshot:
https://cldup.com/fYAKrrrFYm.png

Slack conversation with @crunnells in #themes: https://a8c.slack.com/archives/C029FM1EH/p1529527358000002

Expected

Content to be properly aligned under slider.

@thesacredpath thesacredpath added the [Type] Bug Something isn't working label Jun 20, 2018
@thesacredpath thesacredpath added this to the Dara milestone Jun 20, 2018
@Lochlaer
Copy link

User is reporting this same issue in #1604482-zen.

@caimin-j
Copy link

Had a user reporting the same issue.
#1638045-zen

Their screenshot:

bug

Haven't been able to reproduce in Chrome, but it happens in Firefox every time. My screenshot:

screenshot 2018-12-11 at 19 22 11

At least with FF, the issue doesn't seem to be strictly cache related. When resizing the window, I found the issue corrected itself:

screenshot 2018-12-11 at 19 23 28

Could be something connected with responsive resizing?

Maybe the cache impacts this sometimes because the theme is trying to resize the image before it's fully loaded (and the true image height/width is available)?

Just some wild guesses thrown in ;)

@ivan-ottinger
Copy link
Contributor

Do we have any time estimated when this issue could be addressed?

@sophiegyo
Copy link
Contributor

I use Firefox and can replicate:
http://cld.wthms.co/Irn3BT

It seems to switch back and forth. More often than not, it triggers on a page refresh, but one in maybe 10 refreshes loads the page normally.

@liviopv
Copy link

liviopv commented Dec 20, 2018

Also able to reproduce on Firefox.

Doing anything that forces the slider to become "active" (like manually viewing to another slider image) makes the error go away:

Video: http://cld.wthms.co/Tqdp2J

Pinged pNEWy-crr-p2 to prioritize since this feels like a pretty big bug

@laurelfulford
Copy link
Contributor

I was able to recreate this on reloading the theme demo's front page in Firefox; I had less luck recreating when visiting the site fresh, in an existing or incognito window.

@laurelfulford
Copy link
Contributor

Tested on https://sebagork.com/, and it's not fixing there, so doubling back to check the fix.

@laurelfulford
Copy link
Contributor

Yeah, got a little too clever -- my initial fix wasn't working when there was only one slide, but looks like it is now with the latest update.

I've already followed up on these two reports:

Pending followup:

  • 1604482-zen (https://dcan-inc.com/) -- the update still needs to be synced to AT sites; should be by end of week; will add calendar reminder for myself and follow up here/in the ZD ticket. Will leave this open for now.

@laurelfulford
Copy link
Contributor

Yeesh, 1604482-zen is not an AT site, I don't think I gave it enough time to load the first time 🤦‍♀️

It looks like it's fixed there now, too -- I will add a comment to that ZD ticket as well, and close this out.

@laurelfulford
Copy link
Contributor

Reopening issue because the fix is causing problems with shorter images in the slideshow:

image

The CSS is assuming they're going to be 600px tall and it really, really shouldn't.

Report and followup: https://en.forums.wordpress.com/topic/featured-content-slider-arrows-fell-out-of-place/

@laurelfulford
Copy link
Contributor

An updated fix has been committed in r52799-wpcom-themes.

It's a bit of a nuclear approach -- I've added JavaScript to trigger resize events when the slideshow is complete, and when the images in the slideshow are done loading, to help make sure Firefox has it at the right size. This does mean there can be some overlap while the slideshow is loading, but it will correct itself once all the images are there.

I'm pretty sure this issue is because we changed the theme to use $(document).ready() instead of $(window).load(), to fix the ads issue in #108. The images aren't always loaded when the slideshow is initiated, causing the overlap.

@laurelfulford
Copy link
Contributor

Followed up in the forum thread!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants