Skip to content
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

fix(FEC-11151): quality dropdown is cropped when user clicks on ‘Quality’ settings on the player after scrolling down #592

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

yairans
Copy link
Contributor

@yairans yairans commented Apr 18, 2021

Description of the Changes

update the player client rect on document.scroll event

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

…ity’ settings on the player after scrolling down
@yairans yairans requested review from OrenMe and dan-ziv April 18, 2021 11:03
eventManager.listen(
document,
'scroll',
debounce(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the anonymous function and use arrow function for the callback _onDocumentScroll

@@ -233,7 +240,7 @@ class Shell extends Component {
FakeEvent.Type.RESIZE,
debounce(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

also here

src/components/shell/shell.js Show resolved Hide resolved
* @returns {void}
* @memberof Shell
*/
_onDocumentScroll(): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we don't have any more logic in it, no need this function, define just _updatePlayerClientRect as a callback for the document scroll event.

@dan-ziv
Copy link
Contributor

dan-ziv commented Apr 18, 2021

@yairans don't we need to change in menu.js the use of guiClientRect to playerClientRect?

@dan-ziv dan-ziv self-requested a review April 18, 2021 13:00
@yairans
Copy link
Contributor Author

yairans commented Apr 18, 2021

No. Gui updated from player

@yairans yairans merged commit 0901670 into master Apr 20, 2021
@yairans yairans deleted the FEC-11151 branch April 20, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants