Browse Source

add comment

Yuki Takei 2 years ago
parent
commit
13dc1ce6fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/remark-drawio/src/components/DrawioViewer.tsx

+ 2 - 2
packages/remark-drawio/src/components/DrawioViewer.tsx

@@ -71,8 +71,8 @@ export const DrawioViewer = memo((props: DrawioViewerProps): JSX.Element => {
         try {
         try {
           GraphViewer.useResizeSensor = false;
           GraphViewer.useResizeSensor = false;
           GraphViewer.prototype.checkVisibleState = false;
           GraphViewer.prototype.checkVisibleState = false;
-          GraphViewer.prototype.lightboxZIndex = 1200;
-          GraphViewer.prototype.toolbarZIndex = 1200;
+          GraphViewer.prototype.lightboxZIndex = 1055; // set $zindex-modal
+          GraphViewer.prototype.toolbarZIndex = 1055; // set $zindex-modal
           GraphViewer.createViewerForElement(div);
           GraphViewer.createViewerForElement(div);
         }
         }
         catch (err) {
         catch (err) {