[ADF-1890] Viewer - Content projection for sidebar only works if sidebarPosition is left Created: 06-Nov-17  Updated: 27-Nov-17  Resolved: 27-Nov-17

Status: Done
Project: Apps Development Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Bug
Reporter: Ole Hejlskov Assignee: Jenny Dosti [X] (Inactive)
Resolution: Resolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Bug Priority:
Category 1
Epic Link: File viewer
Sprint: ADF Sprint 34

 Description   

Using transclusion/content projection for the sidebar in the viewer only works if sidebarPosition is set to left. The following does not display any info in the sidebar:

<adf-viewer 
  [overlayMode]="false" 
  [allowGoBack]="false"
  [allowSidebar]="true"
  [showSidebar]="true"
  [urlFile]="'/assets/preview.pdf'">
    <adf-viewer-sidebar>
      <h1>My Info</h1>
    </adf-viewer-sidebar>  
</adf-viewer>

However this does:

<adf-viewer 
  [overlayMode]="false" 
  [allowGoBack]="false"
  [allowSidebar]="true"
  [showSidebar]="true"
  [sidebarPosition]="'left'"
  [urlFile]="'/assets/preview.pdf'">
    <adf-viewer-sidebar>
      <h1>My Info</h1>
    </adf-viewer-sidebar>  
</adf-viewer>


 Comments   
Comment by Jenny Dosti [X] (Inactive) [ 27-Nov-17 ]

No test case on test rail is needed for this scenario

Generated at Tue Aug 11 23:47:15 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.