소스 검색

Issue #852: sequence panel resize bugfix

cycle20 1 년 전
부모
커밋
f2af97d8ce
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/TmFv3DApp/index.tsx

+ 1 - 0
src/TmFv3DApp/index.tsx

@@ -99,6 +99,7 @@ async function createConfig(configParams: any): Promise<RcsbFv3DCustomInterface>
     panel3dConfig.sequencePanelConfig.config.blockSelectorElement = createBlockSelectorCreator(
         sequenceConfig.config.blockConfig as Array<BlockConfigType>
     );
+    panel3dConfig.sequencePanelConfig.config.blockChangeCallback = () => window.dispatchEvent(new Event('resize'));
 
     molstarConfig.structureViewerConfig.viewerProps.layoutShowSequence = true;
     (molstarConfig as any).loadConfig.loadParams.params = {