Page Responsive autofit according to the screen/window size

Hello,
I want to make my page responsive which must autofit according to the screen/window size. Please refer to my code snippet (index3.html)attached below & make chnages accordingly.

Thanks
Rahul Kumar

Attachment: Demo_(Power_Electronics_Lab)_86f4c985.zip

3 Replies

AR Aravind Ravi Syncfusion Team January 6, 2021 12:01 PM UTC

Hi Rahul, 
 
On analyzing the provided code snippet, you have set the div element width and height in the pixel. So that window does not fit for the screen size. This issue is not related to the diagram component. So please set the div height and width in percentage to resolve the issue. For more information for how to set div width equal to window size, please refer to below link 
 
 
Regards 
Aravind Ravi 



RK Rahul Kumar January 10, 2021 01:36 PM UTC

Hello sir,
 It doesn't work. Can you make changes in my code snippet shared above.

Thanks
Rahul Kumar


AR Aravind Ravi Syncfusion Team January 11, 2021 12:55 PM UTC

Hi Rahul, 
 
As we said earlier, the issue is not related to diagram component. Could you please confirm us whether you set the parent div height and width in percentage or in pixel. If set in pixel means then split the div in percentage. For e.g. For first div set as 20% , 2nd div as 60% and for 3rd div set as 20%. So that all div gets fit to the window screen.  
 
Regards 
Aravind Ravi 


Loader.
Up arrow icon