In a plugin’s custom developed view which extends MarkdownRenderChild, how do i change root container(block code area)’s height dynamically after first rendering in preview mode ?
Below code works in a source view mode, that is, the container height changes with layout update request after first rendering.
`
const newHeight = 1000;
//dynamic style change of the root element container height
container.style.height = ${newHeight}px;
...
//force layout update to reflect block code area(root container) height
(window as any).app.workspace.requestUpdateLayout(false)
...
`
but in a preview mode, it doesn’t work. The view doesn’t refresh changed height. app.workspace.requestUpdateLayout(false) doesn’t work in a preview mode.
Help will be appreciated ~