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(SUP-46391): Player Live Full Screen Bug when browser window is not maximized #976

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yambenari24
Copy link

@yambenari24 yambenari24 commented Jan 22, 2025

Issue:
When browser width is small, side pannel is on, and enter full screen, there is a gap between side pannel and player.

Fix:
Fix timing issue : the issue related to the timing of the DOM updates. When resizing the window or triggering an actions that affect the layout, the client rect of the player container getBoundingClientRect() is not updated immediately after the resize. This causes discrepancies between the actual layout and the values being used in the state.

solved SUP-46391

@@ -212,7 +213,7 @@ class Shell extends Component<any, any> {
*/
componentDidMount() {
const {player, eventManager} = this.props;
eventManager.listen(window, 'resize', debounce(this._onWindowResize, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY));
eventManager.listen(window, 'resize', debounce(this._onWindowResize, RESIZE_DEBOUNCE_DELAY));
Copy link
Collaborator

Choose a reason for hiding this comment

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

this fix is only for fullscreen, right ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Only full screen

Copy link
Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants