chore(overlays): fix demo by adding boundariesElement to popup config

This commit is contained in:
Joren Broekema 2019-06-27 16:10:56 +02:00
parent e775554a07
commit 1ddd7cb93a
5 changed files with 810 additions and 790 deletions

View file

@ -83,6 +83,7 @@ storiesOf('Local Overlay System|Local Overlay Placement', module)
}, },
preventOverflow: { preventOverflow: {
enabled: false /* disables shifting/sliding behavior on secondary axis */, enabled: false /* disables shifting/sliding behavior on secondary axis */,
boundariesElement: 'viewport',
padding: 32 /* when enabled, this is the viewport-margin for shifting/sliding */, padding: 32 /* when enabled, this is the viewport-margin for shifting/sliding */,
}, },
flip: { flip: {

View file

@ -109,6 +109,7 @@ storiesOf('Local Overlay System|Popup', module)
}, },
preventOverflow: { preventOverflow: {
enabled: true /* disables shifting/sliding behavior on secondary axis */, enabled: true /* disables shifting/sliding behavior on secondary axis */,
boundariesElement: 'viewport',
padding: 16 /* when enabled, this is the viewport-margin for shifting/sliding */, padding: 16 /* when enabled, this is the viewport-margin for shifting/sliding */,
}, },
flip: { flip: {

View file

@ -109,6 +109,7 @@ storiesOf('Local Overlay System|Tooltip', module)
}, },
preventOverflow: { preventOverflow: {
enabled: false /* disables shifting/sliding behavior on secondary axis */, enabled: false /* disables shifting/sliding behavior on secondary axis */,
boundariesElement: 'viewport',
padding: 16 /* when enabled, this is the viewport-margin for shifting/sliding */, padding: 16 /* when enabled, this is the viewport-margin for shifting/sliding */,
}, },
flip: { flip: {

1597
yarn.lock

File diff suppressed because it is too large Load diff