From 3185548616099065408b7c35206c58ab48e0f6e4 Mon Sep 17 00:00:00 2001 From: Colin Murtaugh Date: Thu, 10 May 2018 13:47:50 -0400 Subject: [PATCH] Added CSS file for Dart iframe height fix. --- css/dart_iframe_min_height.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 css/dart_iframe_min_height.css diff --git a/css/dart_iframe_min_height.css b/css/dart_iframe_min_height.css new file mode 100644 index 0000000..66acc83 --- /dev/null +++ b/css/dart_iframe_min_height.css @@ -0,0 +1,18 @@ +/* For learning assets from dart.harvard.edu that are + embedded in Canvas modules, ensure that the height + of the iframe is never smaller than the maximum + height of the iframe source content. + + This code prevents an additional scrollbar from being + created when Canvas renders a ExternalURL iframe + with a height smaller than 800px. + + For questions about this code, please contact the + VPAL Services Team: + daniel_seaton@harvard.edu + elliott_yates@harvard.edu + david_house@harvard.edu +*/ +iframe#file_content[src*="dart.harvard.edu"] { + min-height: 800px; +}