1(function(app) { 2 'use strict'; 3 4 app.directive('iframeSetDimensionsOnload', iframeSetDimensionsOnload); 5 6 function iframeSetDimensionsOnload() { 7 8 return { 9 restrict: 'A', 10 link: function (scope, element, attrs) { 11 element.on('load', function () { 12 /* Set the dimensions here, 13 I think that you were trying to do something like this: */ 14 var iFrameHeight = element[0].contentWindow.document.body.scrollHeight + 'px'; 15 var iFrameWidth = '100%'; 16 element.css('width', iFrameWidth); 17 element.css('height', iFrameHeight); 18 }) 19 } 20 } 21 } 22})(angular.module('common.ui'));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.