Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4756

Property activePage is reset by src or content in PDFViewer while in initializing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.0
    • Fix Version/s: 9.5.1
    • Component/s: Components
    • Labels:

      Description

      Steps to Reproduce

      <zk>
          <pdfviewer activePage="1" src="example.pdf" width="100%" height="400px"/>
      </zk>
      

      Current Result

      It loads page 1 initially (activePage 0)

      Expected Result

      It loads page 2 initially (activePage 1)

      Debug Information

      Both calling setSrc and setContent resets the activePage to 0.
      It is okay if the loaded PDF is changed dynamically.
      But for initial properties, it shouldn't be reset.

      Workaround

      Call setActivePage at the end

      <pdfviewer src="example.pdf" activePage="1" width="100%" height="400px"/>
      

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h