Expand the iframe width
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am developing LTI tool, and I wonder how I could use all the space pointed out in the picture.
I have tried postMessage to resize frame, but it didn't work.
It seems like the maximum of the width is set to be 1000px.
Could anyone please teach me how to expand the width of iframe? Thanks a lot!
Regards,
Tina
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure if this is documented anywhere, but in the "placements" objects in your LTI 1.3 configuration you can include a "display_type" attribute with the value "full_width_in_course" that will expand the iframe all the way to the right edge of the window. E.g. the placements should look something like:
'placements': [
{
'placement': 'course_navigation',
'display_type': 'full_width_in_context',
},
{
'placement': 'account_navigation',
'display_type': 'full_width_in_context',
}
]
(Above is just an example showing where the "display_type" attribute goes; your config might have other attributes, placements, etc.)
--Colin