Преглед изворни кода

Keep PDF preview mounted while not visible (#21270)

GitOrigin-RevId: 266ecbb72a5238e1e977265e56c33880ec1a54be
Alf Eaton пре 1 година
родитељ
комит
9352b51d28

+ 1 - 1
services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx

@@ -103,7 +103,7 @@ export const EditorAndPdf: FC = () => {
         onExpand={handlePdfPaneExpand}
         onExpand={handlePdfPaneExpand}
         className="ide-react-panel"
         className="ide-react-panel"
       >
       >
-        {pdfIsOpen && <PdfPreview />}
+        <PdfPreview />
         {/* ensure that "sync to code" is available in PDF only layout */}
         {/* ensure that "sync to code" is available in PDF only layout */}
         {pdfLayout === 'flat' && view === 'pdf' && (
         {pdfLayout === 'flat' && view === 'pdf' && (
           <div className="synctex-controls" hidden>
           <div className="synctex-controls" hidden>