Skip to content
Snippets Groups Projects
Unverified Commit 098c9243 authored by Saad Yousaf's avatar Saad Yousaf Committed by GitHub
Browse files

Merge pull request #141 from edx/saad/TNL-7520

[TNL-7520] - Handle case when modal height and width and set to empty in LTI component in studio.
parents ea85ee14 fdc6e3c1
No related branches found
No related tags found
No related merge requests found
......@@ -1427,6 +1427,8 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock):
Returns:
float: The css position offset to apply to the modal window
"""
if not viewport_percentage:
viewport_percentage = 80 # set to default value in case viewport_percentage is None
return (100 - viewport_percentage) / 2
def get_outcome_service_url(self, service_name="grade_handler"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment