summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn.f.cook2011-11-01 15:53:13 (EDT)
committer Roberto E. Escobar2011-11-01 15:53:13 (EDT)
commit01fcb91720f4f8134067f7d1d0cc5f33f6feb83f (patch)
tree411bac7ac48ff855b9b024a65115f6aea1554ef5
parente0554accf9c6c84daa86086c36a77e31da75d28a (diff)
downloadorg.eclipse.osee-01fcb91720f4f8134067f7d1d0cc5f33f6feb83f.zip
org.eclipse.osee-01fcb91720f4f8134067f7d1d0cc5f33f6feb83f.tar.gz
org.eclipse.osee-01fcb91720f4f8134067f7d1d0cc5f33f6feb83f.tar.bz2
feature[ats_18K4T]: Breadcrumb maintains vertical height with no artifacts
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
index 9dba0c7..c719a38 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
@@ -35,7 +35,7 @@ public class OseeBreadcrumbComponent extends HorizontalLayout {
private void createLayout() {
removeAllComponents();
- if (artifact != null && artifact.getAncestry() != null) {
+ if (artifact != null && artifact.getAncestry() != null && artifact.getAncestry().size() > 0) {
Collection<ViewArtifact> ancestryList = artifact.getAncestry();
if (ancestryList.size() > 0) {
Object[] ancestryArray = ancestryList.toArray();
@@ -51,6 +51,10 @@ public class OseeBreadcrumbComponent extends HorizontalLayout {
}
}
}
+ } else {
+ Label vSpacer = new Label();
+ vSpacer.setHeight(15, UNITS_PIXELS);
+ addComponent(vSpacer);
}
}