diff --git a/src/Alignment.jsx b/src/Alignment.jsx index 51805ca..a51756d 100644 --- a/src/Alignment.jsx +++ b/src/Alignment.jsx @@ -56,7 +56,8 @@ class Alignment extends Component { !_.isEqual(this.props.molecule, nextProps.molecule) || !_.isEqual(this.props.site_color, nextProps.site_color) || !_.isEqual(this.props.text_color, nextProps.text_color), - should_update = !same_fasta || different_coloring; + new_x_coord = _.isEqual(this.props.x_pixel, nextProps.x_pixel), + should_update = !same_fasta || different_coloring || new_x_coord; if (should_update) { this.initialize(nextProps); return true; diff --git a/src/app/FASTA/start_at_site_and_sequence.jsx b/src/app/FASTA/start_at_site_and_sequence.jsx index 2ac335d..8d22886 100644 --- a/src/app/FASTA/start_at_site_and_sequence.jsx +++ b/src/app/FASTA/start_at_site_and_sequence.jsx @@ -23,7 +23,11 @@ class StartAtSiteAndSequence extends Component { return (
-

Begin centered on a given sequence (CY010004) and site (100).

+

+ Begin centered on a given sequence (CY010004) and site ({ + this.state.site + }). +