Skip to content

Commit 43c7416

Browse files
committed
fix right panel resizing
1 parent 2a44a1d commit 43c7416

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/remix-ide/src/app/panels/layout.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ export class Layout extends Plugin {
115115
}
116116
})
117117

118+
this.on('rightSidePanel', 'rightSidePanelShown', async () => {
119+
const current = await this.call('rightSidePanel', 'currentFocus')
120+
if (this.enhanced[current]) {
121+
this.event.emit('enhanceRightSidePanel')
122+
}
123+
124+
if (this.maximized[current]) {
125+
this.event.emit('maximiseRightSidePanel')
126+
}
127+
128+
if (!this.enhanced[current] && !this.maximized[current]) {
129+
this.event.emit('resetRightSidePanel')
130+
}
131+
})
132+
118133
document.addEventListener('keypress', e => {
119134
if (e.shiftKey && e.ctrlKey) {
120135
if (e.code === 'KeyF') {

0 commit comments

Comments
 (0)