Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

javascript - Issue detecting viewport width with Percy

I'm in the process of setting up visual reviews through percy and I'm running into an issue with detecting the viewport width accurately when running through percy. Our project has javscript code that detects the width and then renders the UI different depending on the width. This screen shot shows the widths that were detected when running in chrome locally on my laptop: enter image description here

And this one shows the widths that were detected when running through percy and having a width of 600px set in the .percy.yml file (note the 600px in the upper right corner): enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

62 comments

56.6k users

...