Skip to content
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

formio: Form iframe (resizer) height issue #20

Closed
bobslee opened this issue Mar 4, 2020 · 3 comments
Closed

formio: Form iframe (resizer) height issue #20

bobslee opened this issue Mar 4, 2020 · 3 comments
Assignees
Labels
bug Something isn't working formio (module)

Comments

@bobslee
Copy link
Member

bobslee commented Mar 4, 2020

As shown in screenshot, there's an issue with the form canvas its height - auto scaling.

Have to find out whether its a CSS issue or due to a misconfiguration in the included iFrame Resizer library:
https://davidjbradshaw.github.io/iframe-resizer/

Suggestions:

image

@bobslee bobslee self-assigned this Mar 4, 2020
@bobslee bobslee added the bug Something isn't working label Mar 4, 2020
@bobslee
Copy link
Member Author

bobslee commented Mar 5, 2020

Experiment:
When changing the Javascript in file: formio/static/src/xml/formio.xml, to:

iFrameResize({heightCalculationMethod: 'lowestElement'}, '#formio_form_embed');

=> Initially (first click) works.
However not after closing the Select component - then the iframe just doesn't resize (downsize)!

The option heightCalculationMethod doesn't make any difference with values: max, grow or lowestElement.

@bobslee
Copy link
Member Author

bobslee commented Apr 29, 2020

Maybe I've a workaround for this issue. Still experimenting tough.

@bobslee
Copy link
Member Author

bobslee commented Apr 30, 2020

Before closing, first test test test.

@bobslee bobslee changed the title iframe (resizer) height issue formio: iframe (resizer) height issue Jun 2, 2020
@bobslee bobslee changed the title formio: iframe (resizer) height issue formio: Form iframe (resizer) height issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formio (module)
Projects
None yet
Development

No branches or pull requests

1 participant