Skip to content

Commit d4e56b1

Browse files
committed
Fix scale in non applet mode
1 parent af4ba87 commit d4e56b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ui/blackboard/jupyterhublet.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,12 @@ export class JupyterHublet extends Component {
696696
this.jState.flushCompress()
697697
this.tryLoadJupyterFile()
698698
}
699+
if (
700+
this.props.appids?.appid !== prevProps.appids?.appid &&
701+
this.props.appids?.appid === notebookEditPseudoAppid
702+
) {
703+
this.setState({ appletheight: undefined, appletwidth: undefined })
704+
}
699705
if (this.props.master !== prevProps.master) {
700706
// check if we have to initiate a master rescale
701707
this.checkAdjustAppletSize()

0 commit comments

Comments
 (0)