fix(core,store): await fitView before emitting pane-ready
This commit is contained in:
@@ -962,10 +962,10 @@ export function useActions(
|
||||
}
|
||||
|
||||
until(() => viewportHelper.value.initialized)
|
||||
.toBe(true, { flush: 'pre' })
|
||||
.then(() => {
|
||||
.toBe(true)
|
||||
.then(async () => {
|
||||
if (state.fitViewOnInit) {
|
||||
viewportHelper.value.fitView()
|
||||
await viewportHelper.value.fitView()
|
||||
}
|
||||
|
||||
state.hooks.paneReady.trigger({
|
||||
|
||||
Reference in New Issue
Block a user