From 328bec0ded1781086dffefd60ce60987b4757644 Mon Sep 17 00:00:00 2001 From: Yatao Li Date: Sun, 15 Aug 2021 16:48:53 +0800 Subject: [PATCH] GridVM: reset anchor to 0 when detached as external --- ViewModels/GridViewModel.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ViewModels/GridViewModel.fs b/ViewModels/GridViewModel.fs index a636223..0132ff4 100644 --- a/ViewModels/GridViewModel.fs +++ b/ViewModels/GridViewModel.fs @@ -359,6 +359,8 @@ and GridViewModel(_gridid: int, ?_parent: GridViewModel, ?_gridsize: GridSize) a | WinExternalPos(_,win) -> if not m_is_external then m_is_external <- true + m_anchor_col <- 0 + m_anchor_row <- 0 (this:>IGridUI).Detach() CreateFrame this m_winid <- win