change(player): fix screen change
This commit is contained in:
parent
f0ae152e00
commit
ed857861a9
1 changed files with 6 additions and 3 deletions
|
|
@ -54,9 +54,8 @@ export default class Screen {
|
|||
readonly cursor: Cursor
|
||||
|
||||
private readonly iframe: HTMLIFrameElement;
|
||||
protected readonly screen: HTMLDivElement;
|
||||
protected readonly controlButton: HTMLDivElement;
|
||||
protected parentElement: HTMLElement | null = null;
|
||||
private readonly screen: HTMLDivElement;
|
||||
private parentElement: HTMLElement | null = null;
|
||||
|
||||
constructor() {
|
||||
const iframe = document.createElement('iframe');
|
||||
|
|
@ -102,6 +101,10 @@ export default class Screen {
|
|||
})
|
||||
}
|
||||
|
||||
getParentElement(): HTMLElement | null {
|
||||
return this.parentElement
|
||||
}
|
||||
|
||||
setBorderStyle(style: { border: string }) {
|
||||
return Object.assign(this.screen.style, style)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue