Skip to content

Commit abdd434

Browse files
committed
fix: fix
- update selector in css to render iframe properly - update identifier in js to find LTI element
1 parent a60b5c4 commit abdd434

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

xblocks_contrib/lti/static/css/lti.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,44 @@ div.problem-progress {
1414
font-size: 1em;
1515
}
1616

17-
div.lti {
17+
div._lti_extracted {
1818
margin: 0 auto;
1919
}
2020

21-
div.lti .wrapper-lti-link {
21+
div._lti_extracted .wrapper-lti-link {
2222
font-size: 14px;
2323
background-color: #f6f6f6;
2424
padding: 20px;
2525
}
2626

27-
div.lti .wrapper-lti-link .lti-link {
27+
div._lti_extracted .wrapper-lti-link .lti-link {
2828
margin-bottom: 0;
2929
text-align: right;
3030
}
3131

32-
div.lti .wrapper-lti-link .lti-link .link_lti_new_window {
32+
div._lti_extracted .wrapper-lti-link .lti-link .link_lti_new_window {
3333
font-size: 13px;
3434
line-height: 20.72px;
3535
}
3636

37-
div.lti form.ltiLaunchForm {
37+
div._lti_extracted form.ltiLaunchForm {
3838
display: none;
3939
}
4040

41-
div.lti iframe.ltiLaunchFrame {
41+
div._lti_extracted iframe.ltiLaunchFrame {
4242
width: 100%;
4343
height: 800px;
4444
display: block;
4545
border: 0px;
4646
}
4747

48-
div.lti h4.problem-feedback-label {
48+
div._lti_extracted h4.problem-feedback-label {
4949
font-weight: 100;
5050
font-size: 1em;
5151
font-family: "Source Sans", "Open Sans", Verdana, Geneva, sans-serif, sans-serif;
5252
}
5353

54-
div.lti div.problem-feedback {
54+
div._lti_extracted div.problem-feedback {
5555
margin-top: 5px;
5656
margin-bottom: 5px;
5757
}

xblocks_contrib/lti/static/js/src/lti.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* JavaScript for LTIBlock. */
22

3-
function LTIBlock(element) {
3+
function LTIBlock(runtime, element) {
44
'use strict';
55

6-
const $lti = $(element).find('.lti');
6+
const $lti = $(element).find('._lti_extracted');
77
const askToSendUsername = $lti.data('ask-to-send-username') === 'True';
88
const askToSendEmail = $lti.data('ask-to-send-email') === 'True';
99

0 commit comments

Comments
 (0)