Advertisement
Javi

height

Jul 26th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var content, contentHeight, footer, header, viewportHeight;
  2. header = $(":jqmData(role='header'):visible");
  3. footer = $(":jqmData(role='footer'):visible");
  4. content = $(":jqmData(role='content'):visible");
  5. viewportHeight = $(window).height();
  6. contentHeight = viewportHeight - header.outerHeight() - footer.outerHeight();
  7. $("article:jqmData(role='content')").first().height(contentHeight);
  8. $("#contenedorMapa").height(contentHeight);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement