Skip to content

Commit

Permalink
fix maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored and Aniket-Engg committed Sep 16, 2024
1 parent 3895dca commit 04febb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/remix-ide/src/app/panels/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export class Layout extends Plugin {
event: any
panels: panels
enhanced: { [key: string]: boolean }
maximized: { [key: string]: boolean }
constructor () {
super(profile)
this.maximized = {}
this.enhanced = {
'dgit': true,
'LearnEth': true
Expand Down Expand Up @@ -129,13 +131,13 @@ export class Layout extends Plugin {

async maximiseSidePanel () {
const current = await this.call('sidePanel', 'currentFocus')
this.enhanced[current] = true
this.maximized[current] = true
this.event.emit('maximisesidepanel')
}

async maximisePinnedPanel () {
const current = await this.call('pinnedPanel', 'currentFocus')
this.enhanced[current] = true
this.maximized[current] = true
this.event.emit('maximisepinnedpanel')
}

Expand Down

0 comments on commit 04febb1

Please sign in to comment.