Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [data-role=page]{height: 100% !important; position:relative !important;}
- [data-role=footer]{bottom:0; position:absolute !important; top: auto !important; width:100%;}
- $(function(){
- checkWindowHeight();
- $(document).bind('orientationchange',function(event){
- checkWindowHeight();
- })
- });
- function checkWindowHeight(){
- $('[data-role=content]').each(function(){
- var containerHeight = parseInt($(this).css('height'));
- var windowHeight = parseInt(window.innerHeight);
- if(containerHeight+118 < windowHeight){
- var newHeight = windowHeight-118;
- $(this).css('min-height', newHeight+'px');
- }
- });
- }
Add Comment
Please, Sign In to add comment