genresize.js 931 B

12345678910111213141516171819202122232425262728
  1. // Licensed Materials - Property of IBM
  2. //
  3. // IBM Cognos Products: pps
  4. //
  5. // (C) Copyright IBM Corp. 2005, 2017
  6. //
  7. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. function doResize() {
  9. var innerNice = document.getElementById("innerNice1-tab0");
  10. var innerFrameHeight = parseInt(document.body.offsetHeight);
  11. var title = document.getElementById("titleDiv");
  12. //it's necessary to offset the inner div by the dim bar height as we want the scroll bars
  13. //to be attached to it, and not the frame. Why? So the title and dimension bar don't move!
  14. if (innerNice && innerFrameHeight > 0)
  15. {
  16. innerFrameHeight -= innerNice.offsetTop;
  17. if (title && !topparent.getGlobal("nn7"))
  18. innerFrameHeight -= title.offsetHeight;
  19. if (innerFrameHeight >= 0)
  20. innerNice.style.height = innerFrameHeight + "px";
  21. if (hasDimensionBar)
  22. reflow_dimbar();
  23. }
  24. }