50
Views
4
Comments
[SimpleViewer] Height of Viewer
Question
simpleviewer
Web icon
Forge asset by Caio Santana Magalhães

Sorry for asking a dumb question, but iam not that much into css. 

How do i manage to set the height of the viewer to 100% ?

Thank you very much.

Stefan

UserImage.jpg
Stelea Alexandru

Stefan Weber wrote:

Sorry for asking a dumb question, but iam not that much into css. 

How do i manage to set the height of the viewer to 100% ?

Thank you very much.

Stefan

Hello,

Here is what you should do in the CSS style, on the main div

display: block;
overflow: auto;
height:100%;


UserImage.jpg
Stefan Weber

Stelea Alexandru wrote:

Thank you. This one seems to set the surrounding container to 100% but the viewer itself is stii not expanding. Seems like there is a hard 400px default height ?

Stefan Weber wrote:

Sorry for asking a dumb question, but iam not that much into css. 

How do i manage to set the height of the viewer to 100% ?

Thank you very much.

Stefan

Hello,

Here is what you should do in the CSS style, on the main div

display: block;
overflow: auto;
height:100%;




UserImage.jpg
Stelea Alexandru

Could you please upload screenshoot? including the settings also (css).


Thank you

2024-01-09 11-12-12
Miguel Rocha

Hello,

To override the height and set it to 100% I added this CSS to the screen that is using this WebBlock:

.SimpleViewer,
.pdfobject {
    height: 100% !important;
} 
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.