se non ti disturba troppo uno sfarfallio te le puoi ricavare con un doppio resize

codice:
b_w=function() {return ((window.innerWidth)?window.innerWidth:(document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.clientWidth)}
b_h=function() {return ((window.innerHeight)?window.innerHeight:(document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight)}
rsz=function() {self.resizeTo(ww,hh)}

function init() {
// ricava posizione dell' elemento, dopodiche'...
ww=b_w()
hh=b_h()
rsz()
ww2=b_w()
hh2=b_h()
w_add=(ww-ww2)
h_add=(hh-hh2)
// negli add dovresti avere lo spazio occupato da barre e telaio
ww+=w_add
hh=y+h_add
rsz()
}
prova...