Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-13-2009, 07:31 PM   #1
Registered User
Join Date: May 2009
Posts: 1
Default Components disappear when browser is resized

Hey there,
I'm new here, but this seems like the best place to get help on all things Actionscript and, in my case, Flex.
Note: from her on out, whenever I refer to 'tab' I mean the SuperTabNavigator tab, on Flex, not the browser tab, unless explicited otherwise.

We have this Flex app built on Builder 3 and we're using SuperTabNavigator from FlexLib to have some modules displayed. The thing is, whenever the user resizes the browser window all the contents on any tabs open simply disappear and there's no way to get them back. This only happens the first time, so if you close these 'broken' tabs and reopen them, you can resize all you want, but you still lost all you were doing in them and this is unacceptable. I've done some testing and found the module in that tab doesn't dispatch the resize events when this happens. It's dispatched when it opens (everything is set to 100% to fit the browser window, so it resizes on startup) and every other time you resize it without 'breaking' it. It gets weirder. I've also found that resizing works perfectly as long as you resize it to a size larger than the original (i.e. you open it in a browser window that is restored and then maximized), but even after doing that, if you change its size back to something even a pixel smaller than the original, the module just disappears. Everything else remains in perfect working conditions: any components outside tabs and the tabs itself work, but (summing up) anything within any tab open at the moment you first resize the browser window to a size smaller than the original just disappears.

I understand that this is a weird problem and hope some of you might be able to help me. Feel free to ask any questions if anything wasn't clear.

Thanks in advance.
lporto is offline   Reply With Quote
Old 05-15-2009, 07:24 AM   #2
Registered User
Join Date: Mar 2008
Posts: 21

Hi lporto,

try to place same code!!

I also use a SuperTabNavigator, and it works nice also after resizing the application.

ABM is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
attachBitmap/aspect ratio not working until browser resized pajhonka ActionScript 2.0 3 08-25-2009 10:20 PM
Controlling Browser Window via Flash Javascript buttons [via 'get url' statement]. cheeky_monkey ActionScript 1.0 (and below) 7 01-20-2009 02:30 PM
How to launch browser in specific position from Flash pointer ActionScript 2.0 0 04-30-2007 12:42 PM
Components & mousewheel - problem?? Shane68 Components 0 05-09-2005 01:18 PM
Php, Javascript, and Flash 5 browser detect and more! Redline01 Server-Side Scripting 2 08-11-2001 01:09 AM

All times are GMT. The time now is 03:24 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.