Created
December 22, 2014 15:55
-
-
Save mtetlow/f33788b9de2e7c54cb01 to your computer and use it in GitHub Desktop.
Canvas Resize junk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- include this fella --> | |
<script type='text/javascript' src='/canvas/sdk/js/publisher.js'></script> | |
<script> | |
//Call whenever you do something that results in a frame resize, and probably on load | |
function resizeIframe(){ | |
var containerHeight = document.getElementById('checklist-container').clientHeight; | |
Sfdc.canvas.publisher.resize( {height : containerHeight+'px'}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment