0

when I add the tollbar(as in this example: http://openseadragon.github.io/examples/ui-toolbar/) properties I get an error Cannot read property 'appendChild' of null

I just want to add a div to the buttons to controlling their margin/padding

 var viewer1 = OpenSeadragon({
                 id: "mainImage",
                 maxZoomPixelRatio:6,
                toolbar:"toolbarDiv",
                panVertical:    false,
               defaultZoomLevel:    0.75,
               minZoomLevel:    0.75,
               visibilityRatio:     1,
                 preserveViewport:true, /
                 preserveImageSizeOnResize : true,
                 prefixUrl: "img",
       });
4

1 回答 1

1

As mentioned in https://github.com/openseadragon/openseadragon/issues/1140: Do you have an element on your page with the id toolbarDiv? If not, you'll get that error.

于 2017-02-28T18:17:01.710 回答