}
/*
- * Expand protein to 3 times character width of dna
+ * Scale protein to either 1 or 3 times character width of dna
*/
if (protein != null && cdna != null)
{
ViewStyleI vs = protein.getViewStyle();
- vs.setCharWidth(3 * vs.getCharWidth());
+ int scale = vs.isScaleProteinAsCdna() ? 3 : 1;
+ vs.setCharWidth(scale * cdna.getViewStyle().getCharWidth());
protein.setViewStyle(vs);
}
}
panel.add(menuPanel, BorderLayout.NORTH);
panel.add(af.statusBar, BorderLayout.SOUTH);
panel.add(af.alignPanel, BorderLayout.CENTER);
+
+ af.setSplitFrame(this);
}
/**