fix(core): wait until fitting view on init
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -147,7 +147,12 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
||||
}, [])
|
||||
|
||||
if (state.fitViewOnInit && !fitViewOnInitDone) {
|
||||
viewportHelper.fitView()
|
||||
until(() => viewportHelper.initialized)
|
||||
.toBe(true)
|
||||
.then(() => {
|
||||
viewportHelper.fitView()
|
||||
})
|
||||
|
||||
fitViewOnInitDone = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user