Fix active Jitsi calls (and other active widgets) not being visible on screen, by showing them in PiP if they are not visible in any other container (#7435)
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
ac6177053a
commit
f6effc52fd
4 changed files with 53 additions and 19 deletions
|
@ -197,13 +197,16 @@ export default class CallPreview extends React.Component<IProps, IState> {
|
|||
draggable={pipMode}
|
||||
onDoubleClick={this.onDoubleClick}
|
||||
>
|
||||
{ ({ onStartMoving, onResize }) => <CallView
|
||||
onMouseDownOnHeader={onStartMoving}
|
||||
call={this.state.primaryCall}
|
||||
secondaryCall={this.state.secondaryCall}
|
||||
pipMode={pipMode}
|
||||
onResize={onResize}
|
||||
/> }
|
||||
{
|
||||
({ onStartMoving, onResize }) =>
|
||||
<CallView
|
||||
onMouseDownOnHeader={onStartMoving}
|
||||
call={this.state.primaryCall}
|
||||
secondaryCall={this.state.secondaryCall}
|
||||
pipMode={pipMode}
|
||||
onResize={onResize}
|
||||
/>
|
||||
}
|
||||
</PictureInPictureDragger>
|
||||
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue