Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17089

Add option to make fileviewer height fill remaining height

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      When adding a fileviewer module the height of the iframe for the fileviewer is sized to fit the content, not to fill the remaining space on the page. This works well for e.g text based viewers, but for graphical viewers, especially those utilizing zooming, sizing to take up all available space makes a lot more sense.

      It would be very useful to have the module tell Bitbucket whether the iFrame should fit the content or fill the remaining space.

      E.g I am working on a file viewer for PCB CAD files. These CAD files are typically big (mostly landscape A4 format) and thus the fileviewer allows to pan and zoom these files and the viewbox takes all available space. However, since Bitbucket sets the height of the iframe for the viewer to fit it's contents, the iframe is only as big as the fixed-height menu items, making the fileviewer pretty much useless:

      The only way to currently fix this is to set a fixed height to the viewbox, either resulting in unused space or extra scrollbars negatively impacting usability, or coming up with a complicated workaround to detect the maximum height impacting performance.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            seppe1 Seppe Stas
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: