Skip to content

Commit

Permalink
GridVM: reset anchor to 0 when detached as external
Browse files Browse the repository at this point in the history
  • Loading branch information
yatli committed Aug 15, 2021
1 parent 98b8e8c commit 328bec0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ViewModels/GridViewModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 328bec0

Please sign in to comment.