diff --git a/docs/guides/integration_with_angular.md b/docs/guides/integration_with_angular.md index f53438b..4758405 100644 --- a/docs/guides/integration_with_angular.md +++ b/docs/guides/integration_with_angular.md @@ -127,8 +127,6 @@ body { /* specify styles for the Event Calendar container */ .widget { - position: relative; - width: 100%; height: 100%; } ~~~ diff --git a/docs/guides/integration_with_react.md b/docs/guides/integration_with_react.md index 741229d..603b600 100644 --- a/docs/guides/integration_with_react.md +++ b/docs/guides/integration_with_react.md @@ -105,7 +105,27 @@ export default function EventCalendarComponent(props) { }; }, []); - return
; + return
; +} +~~~ + +#### Adding styles + +To display Event Calendar correctly, you need to provide the corresponding styles. You can use the **index.css** file to specify important styles for Event Calendar and its container: + +~~~css title="index.css" +/* specify styles for initial page */ +html, +body, +#root { + height: 100%; + padding: 0; + margin: 0; +} + +/* specify styles for the Event Calendar container */ +.widget { + height: 100%; } ~~~ @@ -180,7 +200,7 @@ export default function EventCalendarComponent(props) { } }, []); - return
; + return
; } ~~~ @@ -207,7 +227,7 @@ export default function EventCalendarComponent(props) { } }, []); - return
; + return
; } ~~~