samvera-labs / openseadragon-react-viewer

A React wrapper around the OpenSeadragon viewer which extends viewer functionality.
https://samvera-labs.github.io/openseadragon-react-viewer/
27 stars 7 forks source link

Add viewer height to options configuration #33

Closed adamjarling closed 4 years ago

adamjarling commented 4 years ago

Description

We should allow Viewer consuming applications to specify what height (in pixels), they'd prefer to render the OpenSeadragonViewer.

Done looks like

const options = {
    showDropdown: true,
    ...
    height: 800 // default
  };

  return (
    <OpenSeadragonViewer manifestUrl={manifestUrl} options={options} />
  );