Skip to content

Commit bec452c

Browse files
committed
Centering view
1 parent f5f9755 commit bec452c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/resources/templates/cesymm.html.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
o.addRepresentation("cartoon", {color:"grey"});
6666
o.addRepresentation("cartoon", {sele:"/0",color:"blue"});
6767
o.addRepresentation("cartoon", {sele:"/1",color:"red"});
68+
stage.centerView();
69+
6870
} ); //add event listener
6971
} );
7072

src/main/resources/templates/ngl.html.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
stage.loadFile( "/mmcif/{{structureId}}", { defaultRepresentation: true, ext:"cif" } ).then(function(o) {
6161
6262
console.log("Loaded {{structureId}}");
63-
63+
stage.centerView();
6464
} ); //add event listener
6565
} );
6666

0 commit comments

Comments
 (0)