Resize the height of a Flow widget to fit the size of its contents.
Time: 4:59
Widget resize code snippets
These are the two scripts to put in the <head>
of your html:
<script type="text/javascript" src="/static/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/static/js/helpers/campusWidget.js"></script>
Put this last script underneath the <body>
of your html:<script>CampusUI.updateHeight(Math.max($("#container").height(),150))</script>
Resize still not working? Check on these:
- Refresh the browser, not the widget.
- Did you put the id "container" on the
<body>
? - If it still is not resizing, add a container
<div>
within the<body>
and move the "container" id to that container<div>
.
Comments
0 comments
Please sign in to leave a comment.