From 95ca3c2419a760970d56a4af656b28c4f3b6c073 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 19 Nov 2023 11:55:52 -0500 Subject: fixed creating anchors when pinning pdf/web/text doc with selection. fixed showing selected text overlay for text docs. --- src/client/util/DocumentManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/util') diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts index f05c41fa7..01230bc06 100644 --- a/src/client/util/DocumentManager.ts +++ b/src/client/util/DocumentManager.ts @@ -307,7 +307,7 @@ export class DocumentManager { focused = focused || (nextFocus === undefined ? false : true); // keep track of whether focusing on a view needed to actually change anything const { childDocView, viewSpec } = await iterator(docView); if (!childDocView) return { viewSpec: options.anchorDoc ?? viewSpec ?? docView.rootDoc, docView, contextView, focused }; - contextView = docView; + contextView = options.anchorDoc?.layout_unrendered ? childDocView : docView; docView = childDocView; } }; -- cgit v1.2.3-70-g09d2