Uploaded image for project: 'Apps Development Framework'
  1. Apps Development Framework
  2. ADF-1890

Viewer - Content projection for sidebar only works if sidebarPosition is left

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Unprioritized
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      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>
      

        TestRail: Results

          Attachments

            Structure

              Activity

                People

                • Assignee:
                  jdosti Jenny Dosti [X] (Inactive)
                  Reporter:
                  ohejlskov Ole Hejlskov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    TestRail: Cases

                      Structure Helper Panel