browser resize question

Out of context: Reply #8

  • Started
  • Last post
  • 12 Responses
  • elee0

    If you have the flash source, it sounds like your dev has listeners set up for resize events, but not for the activate. You'd want to trigger the resize function when the app initializes.

    If not, you can use the hackier window resize solution by doing something like this:

    function GetWidth()
    {
    var x = 0;
    if (self.innerHeight)
    {
    x = self.innerWidth;
    }
    else if (document.documentElement && document.documentElement.clientH...
    {
    x = document.documentElement.clientW...
    }
    else if (document.body)
    {
    x = document.body.clientWidth;
    }
    return x;
    }

    function GetHeight()
    {
    var y = 0;
    if (self.innerHeight)
    {
    y = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientH...
    {
    y = document.documentElement.clientH...
    }
    else if (document.body)
    {
    y = document.body.clientHeight;
    }
    return y;
    }
    self.resizeTo(getWidth()-1,getHe...

View thread