Skip to content

Commit

Permalink
Merge a8158e5 into df4e776
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Feb 6, 2019
2 parents df4e776 + a8158e5 commit 2015fc8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions packages/component/src/Styles/StyleSet/Root.js
@@ -1,5 +1,11 @@
export default function ({ backgroundColor }) {
export default function ({
backgroundColor,
rootHeight,
rootWidth
}) {
return {
backgroundColor
backgroundColor,
height: rootHeight,
width: rootWidth
};
}
4 changes: 4 additions & 0 deletions packages/component/src/Styles/defaultStyleSetOptions.js
Expand Up @@ -40,6 +40,10 @@ const DEFAULT_OPTIONS = {
bubbleMinWidth: 250, // min screen width = 300px, Edge requires 372px (https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13621468/)
bubbleTextColor: 'Black',

// Root
rootHeight: '100%',
rootWidth: '100%',

// Send box
hideSendBox: false,
hideUploadButton: false,
Expand Down
2 changes: 1 addition & 1 deletion samples/01.a.getting-started-full-bundle/README.md
Expand Up @@ -89,7 +89,7 @@ Finally, add desired styling.
+ html, body { height: 100% }
+ body { margin: 0 }

+ #webchat, #webchat > * {
+ #webchat {
+ height: 100%;
+ width: 100%;
+ }
Expand Down
3 changes: 1 addition & 2 deletions samples/01.a.getting-started-full-bundle/index.html
Expand Up @@ -12,8 +12,7 @@
html, body { height: 100% }
body { margin: 0 }

#webchat,
#webchat > * {
#webchat {
height: 100%;
width: 100%;
}
Expand Down

0 comments on commit 2015fc8

Please sign in to comment.