Set the minimum height of Pdf Viewer less than 500px

Hi,

I am having an issue overriding the "min-height" CSS of PdfViewer component. No matter how I set the PdfViewer's min-height, it is automatically set to 500px every time.

Could you please tell me if there is any way that I can achieve that, please?

Best regards,
Ignacy Mielniczek

3 Replies 1 reply marked as answer

VS Vasugi Sivajothi Syncfusion Team March 19, 2021 02:41 PM UTC

Hi Ignacy, 
  
Thanks for contacting Syncfusion support. 
  
We can set the min-height of PdfViewer component using created event. Please refer to the below code snippet and sample, 
  
Code Snippet: 
<ejs-pdfviewer 
      id="pdfViewer" 
      [serviceUrl]="service" 
      (created)="created($event)" 
      [documentPath]="document" 
      style="height:200px; min-height: 400px; display:block" 
    ></ejs-pdfviewer> 
  
  
  public created (e: void) {    
  
document.getElementById("pdfViewer").style.minHeight = "200px"; 
  
  } 
  
  
  
  
  
Kindly try this and revert to us with more details if you have any concerns about this. 
  
  
Regards, 
Vasugi 
  


Marked as answer

IM Ignacy Mielniczek March 19, 2021 03:00 PM UTC

Hello Vasugi,

Thank you very much for a quick response. I am glad to inform you that the issue which I was facing is resolved.

Best Regards,
Ignacy Mielniczek


VS Vasugi Sivajothi Syncfusion Team March 22, 2021 09:42 AM UTC

 
Hi Ignacy, 
  
Thank you for the update. We are glad to know that the issue was resolved.  
  
Regards, 
vasugi 


Loader.
Up arrow icon