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

fix(menu-surface): Fix absolute positioning for scrollX #3609

Merged
merged 9 commits into from
Sep 24, 2018

Conversation

williamernest
Copy link
Contributor

Fixes absolute positioning cases when the body is scrolled.

td.verify(mockAdapter.setPosition({left: '110px', top: '100px'}));
});

testFoundation('#open in absolute position at x/y=100, fixed position, hoisted menu surface, scrollY/scrollY 10 px',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrollX/scrollY?

Is there any value to having the x/y scroll tests separate for absolute but combined for fixed?

@codecov-io
Copy link

codecov-io commented Sep 21, 2018

Codecov Report

Merging #3609 into master will increase coverage by 0.02%.
The diff coverage is 70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3609      +/-   ##
==========================================
+ Coverage   98.43%   98.46%   +0.02%     
==========================================
  Files         120      120              
  Lines        5192     5197       +5     
  Branches      649      652       +3     
==========================================
+ Hits         5111     5117       +6     
+ Misses         81       80       -1
Impacted Files Coverage Δ
packages/mdc-menu-surface/foundation.js 98.28% <70%> (+0.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2fefa2...8cb9b9e. Read the comment docs.

@@ -307,52 +307,51 @@ testFoundation('#open from anchor in top right of viewport, absolute position, h
td.verify(mockAdapter.setPosition({left: '20px', top: '20px'}));
});


testFoundation('#open from small anchor in top right of viewport, fixed position, scrollY 10 px',
testFoundation('#open from small anchor in top left of viewport, fixed position, scrollX/scrollY 5px/10 px',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit: find replace "5px/10 px" with "5px/10px"

@mdc-web-bot
Copy link
Collaborator

All 557 screenshot tests passed for commit 467f1b1 vs. master! 💯🎉

@kfranqueiro
Copy link
Contributor

FYI the lint error this tripped over is fixed in #3623.

@mdc-web-bot
Copy link
Collaborator

All 557 screenshot tests passed for commit 659c52f vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 557 screenshot tests passed for commit 8cb9b9e vs. master! 💯🎉

@williamernest williamernest merged commit 4074535 into master Sep 24, 2018
@williamernest williamernest deleted the fix/menu-surface/absolute-positioning branch September 24, 2018 18:10
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants