Skip to content

Commit

Permalink
fixes #2423
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Apr 4, 2020
1 parent 0c047cd commit 27e247a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.java
Expand Up @@ -610,11 +610,18 @@ private static void hideDetailPanels() {
}

private static void updateAnnotationInfo(AnnotationInfo annotationInfo) {

if(selectedAnnotationInfo!=null){
setAnnotationDescription(annotationInfo);
}
else{
setAnnotationDescription(null);
}

if (annotationInfo == null) {
annotationDescription.setHTML("nothing selected");
return;
}
setAnnotationDescription(annotationInfo);
String type = annotationInfo.getType();
hideDetailPanels();
switch (type) {
Expand Down Expand Up @@ -917,6 +924,7 @@ public void onSelectionChange(SelectionChangeEvent event) {
commentPanel.updateData();
attributePanel.updateData();
}
setAnnotationDescription(selectedAnnotationInfo);
}
});

Expand Down Expand Up @@ -945,6 +953,7 @@ public void reload(Boolean forceReload) {
showAllSequences.setEnabled(true);
showAllSequences.setType(ButtonType.DEFAULT);
if (MainPanel.annotatorPanel.isVisible() || forceReload) {
setAnnotationDescription(null);
hideDetailPanels();
pager.setPageStart(0);
dataGrid.setVisibleRangeAndClearData(dataGrid.getVisibleRange(), true);
Expand Down
2 changes: 1 addition & 1 deletion src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.ui.xml
Expand Up @@ -166,7 +166,7 @@
</gwt:center>
</gwt:DockLayoutPanel>
</gwt:center>
<gwt:south size="440">
<gwt:south size="450">
<gwt:DockLayoutPanel>
<gwt:north size="20">
<gwt:HTML text="placeholder" ui:field="annotationDescription" visible="false" styleName="{style.annotationDescription}"/>
Expand Down

0 comments on commit 27e247a

Please sign in to comment.