Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Frame width changes with browser resizing

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Frame width changes with browser resizing
 Login/Join
 
Platinum Member
posted
Is it possible to have a frame in a launch page change its length when the browser window is resized?

This message has been edited. Last edited by: JohnB,


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Virtuoso
posted Hide Post
I have something similar, only in my case it does not concern resizing, but just when populating the iframes. My setup is such that I always have 3 reports on the page, 2 tabular and 1 graph. The length of these vary. The following bit of javascript is in my page and gets activated immediately after the last iframe has recevied its contents.
// ----------------------------------------------------------------------------------------------------------
// All FRAMES are complete. Find out the length of the content of each frame and alter the height accordingly
// ----------------------------------------------------------------------------------------------------------
var posTopNew = 0;
function resizeFrames() {
  clearTimeout(timer);
//Find out the top position of the first frame.
  posTopNew = parseInt(document.getElementById('report1').style.top);
  setFrameProperties('report1');
  setFrameProperties('report2');
  setFrameProperties('graph1');
}

function setFrameProperties(obj) {
  tmpObj    = document.getElementById(obj);
//Find out the height of the content of the frame
  newHeight = tmpObj.contentWindow.document.body.scrollHeight;
//Set the height of the frame accordingly (+5 for margin)
  tmpObj.style.height = newHeight + 5;
  tmpObj.style.top = parseInt(posTopNew);
  tmpTop    = tmpObj.style.top;
  tmpHeight = tmpObj.style.height;
//posTopNew now is the start position of the next frame
  posTopNew = parseInt(tmpTop) + parseInt(tmpHeight) + 5;
}

I hope that you can use this code to at least get an idea of how you could meet your requirement.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Instead of using top, height, left, width, you can use pixelTop, pixelHeight, pixelWidth and pixelLeft. These are already integers, and do not need to be parsed.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
When you are in the HTML Layout Painter / Composer, select the object (IE. iframe) that you wish to have dynamically sized. In the properties panel, find width. Enter something like 95%. Do the same for height; maybe 80%. You can also use percentages for the starting position values.

Run the page and you will have a dynamically resized iframe, based on the window size and screen resolution.

Enjoy.


-WebFOCUS 8.2.01 on Windows
 
Posts: 318 | Location: Los Angeles, CA | Registered: November 15, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Frame width changes with browser resizing

Copyright © 1996-2020 Information Builders