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(player): adapt player height to control bar height in audioOnly mode #8579

Merged
merged 1 commit into from
May 3, 2024

Commits on Apr 14, 2024

  1. fix(player): adapt player height to control bar height in audioOnly mode

    Adapts the `player.height` to the `controlBar.currentHeight` when the
    `audioOnlyMode` is `enabled`. This ensures that the player height and control
    bar height are always in sync when the player is resized.
    
    - add `updatePlayerHeightOnAudioOnlyMode_` function that will update the player
    height according to the control bar height when the player is resized
    - modify `enableAudioOnlyUI_`
      - add a `controlBarHeight` to `audioOnlyCache_` to keep track of the control
      bar height changes when the player is resized
      - add a `playerresize` listener
    - modify `disableAudioOnlyUI_` to remove the `playerresize` listener
    amtins committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    daa319d View commit details
    Browse the repository at this point in the history