浏览代码

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 = {