-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-reference editor 'Create new entry and link' dropdown won't work in an app #415
Comments
@kamsar, I encountered this same issue. It is because the dropdown containers use It is related to #188 and also impacts the action menu dropdown, which leverages the same container and positioning. The bottom dropdown, (or otherwise long actions menus), will always get cut off by the iframe. Specifically regarding the Create new entry and link action, I was able to produce a quick and dirty workaround by overriding the styles to force the container to be static positioned:
Unfortunately it isn't an applicable workaround for the actions menu dropdown on the individual entry cards. |
Experiencing the same issue. The above fix solves it for me. |
@kamsar @knupska @matt-koevort We're working on the fix for this issue. We're about to release a new version of field-editors with the latest Forma36 under the hook that should resolve the issue. |
The way I worked around this on one of our apps was as follows. However, it's only useful in certain situations (see caveats):
Screen.Recording.2021-12-01.at.12.26.35.movThe results still aren't perfect - obviously the dropdown is causing the whole iframe to grow, rather than just appearing over the field below it, but there are limits to what HTML can do 😄 This was good enough for our use case - to be able to dynamically adjust the height of the iframe to encompass the (variable-length) dropdown items without clipping/scrolling. |
Marking issue as stale since there was no activity for 30 days |
To reproduce this:
npm run start
http://localhost:1338
, with a Entry field editor for Entry reference, listCreate new entry and link
. Then the dropdown for content type selection becomes hidden and can't be clicked.The same view, but with
sdk.window.startAutoResizer()
replaced withsdk.window.updateHeight(800)
to force a very tall iframe:There are two issues here (and they're probably closely related):
autoResizer
is not picking up the opening of the dropdown and resizing the iframedocument.body.scrollHeight
ordocument.documentElement.getBoundingClientRect()
all of which remain constant within the iframe whether the dropdown is open or not.The text was updated successfully, but these errors were encountered: