Browse Source

Issue #852: sequence panel resize bugfix

cycle20 1 year ago
parent
commit
f2af97d8ce
1 changed files with 1 additions and 0 deletions
  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 = {