Skip to content

How to update the Layout through API calls? #8758

Answered by zhaomenghuan
zhaomenghuan asked this question in Q&A

You must be logged in to vote

In the end I solved this problem by the following method:

import { each } from '@phosphor/algorithm';
import { ApplicationShell, MessageLoop, Widget } from '@theia/core/lib/browser';

each(this.shell.children(), child => {
    MessageLoop.sendMessage(child, Widget.ResizeMessage.UnknownSize);
});

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by zhaomenghuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant