vue-doc-preview icon indicating copy to clipboard operation
vue-doc-preview copied to clipboard

IFrame loaded does not cover the whole page

Open 30Capri-gif opened this issue 4 years ago • 1 comments

I am loading the document using the library. The iframe in which the document is loaded however does not fill the entire page. The parent container has a height set to 100%. Shouldn't it be inherited?

The Iframe height is set as auto. image

If I change that height to 100%, it cover the entire page image

I have not set the height of the component, so I am assuming it is defaulting to 90%.

30Capri-gif avatar Jun 08 '20 10:06 30Capri-gif

If you want this component cover whole page, you can set props: height, such as :height="100". Component's height is set in the root element of component. image

cainsyake avatar Jun 13 '20 04:06 cainsyake