Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 411837

Summary: Breadcrumb segments get lost after hash change
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Anton McConville <antonm>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: antonm, gabriel.luong
Version: 3.0   
Target Milestone: 4.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-06-27 18:00:23 EDT
1. Load navigator page.
2. The breadcrumb will show:
> Orion Content
3. Drill into a folder (say "Foo"). 
   Now the breadcrumb shows:
> Foo
  This is wrong. I expected to see this:
> Orion Content / Foo

If you continue to drill into subfolders, you will only see the deepest folder shown the bread crumb. Parent folders are lost.

If you reload the page, you will see the correct, expected breadcrumb.

Something similar happens in the sidebar nav when you are on an "editor-less" editor page (to see it, use access the editor using the "Editor" related link in the hamburger menu, then drill into folders or use Go Up to change the breadcrumb).
Comment 1 Anton McConville CLA 2013-07-08 10:38:08 EDT
This problem happens because the code dynamically measures the space available to write the breadcrumb each time the breadcrumb changes - however it is measuring the existing size ( of the last breadcrumb ) in this scenario, as opposed to the automatic size.
Comment 2 Anton McConville CLA 2013-07-08 10:41:21 EDT
Resetting the available width to 'auto' before measuring - to ensure that the calculation sizes to the maximum available width for the breadcrumb.