Articles in this section
Category / Section

How to Make Height(100%)When the Window is Zoomed in React Diagram?

1 min read

This article explains how to maintain a height of 100% when the window is zoomed in React Diagram. In our Syncfusion React Diagram, to make the diagram’s height adjust dynamically and remain at 100% even when the window is zoomed, set the height and width of the diagram, the body element, and all its parent elements to 100%.

index.html

<style>
  html, body {
      width: 100%;
      height: 100%;
           }
</style>
<div id='sample' style="width: 100%; height: 100%">

Refer to the working sample for additional details and implementation:

Sample: Click here

Conclusion

We hope you enjoyed learning about how to make the height 100% when the window is zoomed in React Diagram.

You can refer to our React Diagram Featuretour Feature tour page to learn about its other groundbreaking feature representations and documentations. You can also explore our React Diagram Example to understand how to present and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our React Spreadsheet and other components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied