Skip to content

Commit d471431

Browse files
committed
Add px unit to iframe height
1 parent 5a42c59 commit d471431

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

orchestra/static/orchestra/common/components/website-iframe/website-iframe.directive.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default function websiteIframe ($compile, $sce, $timeout) {
2626
'class': 'website-iframe',
2727
'id': 'iframe-' + $scope.id,
2828
'frameBorder': 0,
29-
'height': $scope.height || 400
29+
'height': $scope.height || '400px'
3030
}
3131
for (var attr in iframeAttrs) {
3232
iframe.setAttribute(attr, iframeAttrs[attr])
3333
}
3434

3535
var iframeWrapper = document.getElementById('iframe-wrapper-' + $scope.id).parentElement
36-
iframeWrapper.style.height = $scope.height || 400
36+
iframeWrapper.style.height = $scope.height || '400px'
3737

3838
var parent = document.getElementById('iframe-wrapper-' + $scope.id)
3939
parent.appendChild(iframe)

0 commit comments

Comments
 (0)