Re[3]: Resizing
2006/01/20 06:24
Viewed 15923 times
Replies: 1/3

unfortunately, doesn't work for me. still has problems - get a blue bordered box with lots of white space and the rest of document doesn't change size (aqua theme). :(

p

Re[4]: Resizing
2006/01/29 01:50
Viewed 17834 times
Replies: 1/2
by doc

Here is another snippet that works for IE and NS/Mozilla.
We flag the window.resize event AFTER the page has loaded. Then reload the page.

Create an additional function:
function reDo() { document.location.reload(); }

It is important to place the call snippet inside the init() function, else the page will recursively reload.

function init() {
// existing code is here
// now we flag the onresize event
window.onresize = reDo;
}

Tested on IE/NS/Mozilla ... seems to work

dRB

last
Re[5]: Resizing
2006/01/30 18:02
Viewed 19936 times
Replies: 1/1
by doc

Ok. A bit of testing, and the previous two temp fixes fail.

But, this next quik n dirty fix seems to be standing the tests, so here is the code:

[1.] create function as follows:

function fixTabbar(){
if (!tabs.tabBar.style.display) {
// simply redisplay
tabs.tabBar.style.display = "none";
tabs.tabBar.style.display = "";
}
}

[2.] capture onresize event, after page fully loads, as follows:
function init(){
// defined function that comes with DynarchRB
window.onresize = fixTabbar;
}

This seems to work the best. The logic is to simply redisplay an already displayed tabbar (which seems to fix the tabbar display issues when a document is resized)

Hope this helps.

dRB

last
Google