~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-openhealth-integration/src/main/webapp/dhis-web-openhealth-integration/display.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#if( $redirect )
 
3
        
 
4
        <iframe id="frame" src="${redirect}" style="width:100%; height:100%; min-height: 500px; border-width:0px"></iframe>
 
5
        
 
6
        <script type="text/javascript">
 
7
                
 
8
                var paddingTop = document.getElementById( "frame" ).offsetTop;
 
9
                
 
10
                var windowHeight = window.innerHeight;
 
11
                
 
12
                var frameHeight = windowHeight - paddingTop - 15;
 
13
                
 
14
                // Set frame height to fit browser window
 
15
                
 
16
                document.getElementById( "frame" ).style.height = frameHeight +"px";
 
17
                
 
18
</script>
 
19
        
 
20
#end