Flex and HTML display shift in Safari in Mac OS

When a popup is displayed in Flex app, the Flex display gets shifted down in Safari in Mac OS alone. However, even if the display is shifted down, the controls seem to be in the correct position. For example, for clicking a button, the cursor has to be some pixels above the shown display. Not only the Flex display shifts down. HTML Links display also shifts down along with Flex and Links are clickable some pixels above the display.
The problem happens only while triggering the Flex popup display in long flex screen. On a Flex screen within the browser height, with the same actionscript and Javacsript code, there is no problem.
This works fine in all other browsers including Safari in windows.
Has anyone faced this scenario? Any help will be highly appreciated.
For the popup to be displayed in center of viewable area, the following code is used.
callLater(SMBObjectUtil.changePosition,args);
In SMBObjectUtil.as file,
public static function changePosition(x:int, y:int, obj:UIComponent):void {
     var yPos:int = ExternalInterface.call("findScrollTop");      var winHeight:int = ExternalInterface.call("getWindowHeight");
     var appHeight:int = Application.application.height;
     var objectWidth:int = obj.width;
     var objectHeight:int = obj.height;
     var calculatedX:int = 0;
     var calculatedY:int = 0;
     if(Application.application.width>obj.width) {
          try {               calculatedX = (Application.application.width - obj.width)/2;
               if(yPos <= 0){                    calculatedY = ((winHeight-objectHeight)/2-100)>0?(winHeight-objectHeight)/2-100:50;
else if(yPos<=(appHeight-winHeight)){                    calculatedY = (((winHeight-objectHeight)/2)+yPos-100)>0?((winHeight-objectHeight)/2)+yPos-100:50;
else if(yPos>(appHeight-winHeight)){                    calculatedY = appHeight - objectHeight - (winHeight-objectHeight)/2;
          catch(e:Error){          }
     }else {
obj.x = calculatedX;
obj.y = calculatedY;
Javascript functions used are:
function findScrollTop()
  var ScrollTop = document.body.scrollTop;
  if (ScrollTop == 0)
   if (window.pageYOffset)
    ScrollTop = window.pageYOffset;
   else
    ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
  return ScrollTop;
function getWindowHeight()
  var y = 0;
  if (self.innerHeight) {
   y = self.innerHeight;
  } else if (document.documentElement && document.documentElement.clientHeight) {
   y = document.documentElement.clientHeight;
  } else if (document.body) {
   y = document.body.clientHeight;
  return y;

Found a fix for this. CallLater() was giving the problem in Safari. Once I removed CallLater and directly called my function, the problem was resolved.

Similar Messages

  • Types and graphics displayed incorrect in Safari with a second User account

    With my own user account (Admin) Safari works very well. With the second user account I have problems to display Websites correctly. They are only displayed in capital letters and graphics are not loaded. At first I was thinking it depends on the administration authorization or a Java Update. But either doesn't change anything.
    In the meantime I install Firefox 3.0 and the same problem...
    Please help me - it is such %*#
    Thank you very much!

    Place this folder with Word documents located in your Home folder/directory in the Shared folder for your user account at Home > Shared and this employee can do the same when wanting to share a folder or documents with you.
    After doing so, this folder with Word documents will be available in this user's Shared folder when the user logs in to their account.
    The Shared and Public folders let you share files with other people.
    The Shared folder is located in the Users folder on your hard disk. You can use it to share files with other users on your computer. The Shared folder is set up with Read & Write permissions so that all users can open the files in this folder and copy files to the folder.
    Use your personal Public folder inside your home folder to share files with other people on the network. To share information in your Public folder, you must turn on Personal File Sharing in the Sharing pane of System Preferences. Your Public folder is set up with "Read only" permissions that allow others to see and copy its contents, but not change the content.
    Your Public folder also contains a Drop Box folder, which is set up so other people can copy files to your Drop Box, but they cannot see its contents.

  • Co-mingling Flex and HTML

    I have a pretty robust Flex application that I am working on
    and I have some Help documentation that is static HTML. I am using
    the TabNavigator as my navigation and one of the tabs is this help
    documentation. I have a couple of questions now:
    1. Can a tab navigator load an HTML page?
    2. Is there an eay way to render HTML on a Flex page?
    3. What if I had a little dynamic content that was date
    specific but my page was largely static text, what would be the
    best approach for this page?
    Thanks in advance for any help you can provide!!!

    i've use the htmlText property of TextArea to some effect.
    there are SERIOUS limitations. for example, it's best if you
    specify height and width for all your images so that the layout
    happens as you expect. it also helps to set the condenseWhiteSpace
    property to true.
    for my wife's site, i have very static html that i render,
    and for the most part it works ok. one thing i hate is that an
    image can't be the first thing in the text. dunno why, but i've not
    gotten that to work.
    my wife's site is:
    http://www.frozenfield.net -
    to see an example, go to the Field Journal or the Profiles.
    there was a guy who wrote an html component that he used to
    charge for. i think he's a little disgruntled now because he was
    trying to build a small business out it and then adobe came out
    with AIR - not sure if you can still get it. but AIR still doesn't
    deal with a fully net-deployed situation. so i think there is still
    some need for such a component.
    ./paul

  • Connet a thunderbolt monitor and min display port monitor to a mac mini

    I have a new late 2012 Mac Mini.  I also have an exisiting Apple mini display monitor and just got a new Apple thunderbolt monitor.  How do I get these both to work with this Mac Mini so I can have dual monitors?  I read something about an external thunderbolt drive.  How would that work and what product should I buy that has all the ports on the back?  Thank you for the help.

    Unfortunately a Mini Displaport monitor will not work when connected via a Thunderbolt display. Nor will a Thunderbolt display work via a Mini Displayport monitor.
    See http://support.apple.com/kb/HT5219
    You could use a DVI or HDMI monitor in addition to the Thunderbolt display, or you could use two Thunderbolt displays. You could sell your old monitor and buy another new one.

  • Safari 5.1 and pdf display

    There used to be an option to display pdfs in Acrobat or Preview, but this doesn't seem to be available immediately any more. I do not want the pdf to open in Safari first then I have to right click the pdf page to allow it to open in Acrobat. Reading a pdf in Safari is a really inferior way.
    In Acrobat preferences the option to "Display PDF in browser..." is greyed out.
    Just upgraded to Lion, but this pdf behaviour was the same in Safari 5.1 in Snow Leopard.
    Is there any way I can revert back to having  the option of downloading the pdf first?
    Thanks for any help

    Actually, I would like to retract the "helpful answer" because it was not helpful at all. I changed the "Open with" default to Preview to test it out, and it BEHAVES IN EXACTLY THE SAME WAY AS ACROBAT DOES. I click on the pdf icon and it opens into another Safari page. If I right click, all it will download is a xslt_request.html, not the pdf I want.
    I see that you have been giving this information out to other people. Could you please try it out yourself. Here is a test page.
    http://journeyplanner.tfl.gov.uk/
    In the from field: put "london Bridge station". In the to field put: "Kings Cross station". Click "Search". On new page click "view selected".
    A web page will open with some pdfs on the right. Click on one, and it will open to a new Safari page. Right click there and instead of seeing "Open With Acrobat" it will say "Open With Preview".
    So your advice is not helpful at all.

  • Thumbnails are not displayed correctly in Firefox, but displayed correctly in Safari and G. Chrome

    Firefox display problems regarding this customers site:
    http://gardenia.dk/collections/collection/
    Thumbnails are not displayed correctly in Firefox - only a tiny bit of the picture is visible, incorrect scale (displayed correctly in Safari and Google Chrome).
    Can I do anything to make it work in Firefox, too?
    Kind regards,
    Annette

    This article might help you-
    https://support.mozilla.org/en-US/kb/websites-look-wrong-or-appear-differently

  • Fonts Do Not Display Correctly in Safari and Firefox

    Certain fonts do not display smoothly in Safari and Firefox. They appear to have little pieces of the letters missing. I'm sure others have experienced this problem before but I could not find how to fix this. On the Apple Discussions the fonts look fine... on Google for example, they look messed up. I do not know specifically which font(s) are displayed weird but it happens frequently. This happens in Safari and Firefox on my MacPro and MacBookPro. Is there a setting to fix this?
    Thanks,
    -flash

    Hello Flash, welcome to Apple discussions; )
    Look for Helvetica Fractions and Times Phonetic Fonts, if you have them,
    they can be the usual suspects.
    Check the Text encoding in both Safari & FF, under the "View" menu.
    In System preferences-> Personal (top section) in Appearance tab->
    on the last portion of the panel Font smoothing Style: set that to Automatic
    If those don't help, see this users tip excellent article Kurt Lang's ~ Font Management in Mac OS X
    Look into this application to find any corrupt font[s]Font Finagler
    Good luck, let us know how you fare.
    Eme'~{)
    edited by: Eme

  • Flash files not displaying in Firefox, Safari, and Opera. Most recent Shockwave installed, private b

    Flash files not displaying in Firefox, Safari, and Opera. Most recent Shockwave installed, private browsing active in Firefox?  Works perfectly in Chrome and Internet Explorer.  HELP!!!!

    I suppose it would have helped if you knew what it was supposed to look like!   I'm using Shockwave Flash 11.7.700.169  and the version of Firefox I'm on is 20.0
    When you see it in Firefox  - do the thumbnail populate the grid?  See attached populated and un-populated.
    Populated grid is with Chrome.
    Thanks!
    Thanks in advance!

  • Safari and HTML Files

    I created an HTML file in Text Edit and another in Microsoft Word and saved the extensions as .htm and .html
    When I try to open the webpages in Safari by going to File > Open File, the HTML documents show only the source code in Safari instead of the actually webpage (with images and links).
    Am I using the wrong program or are ther preferences that I need to change?

    First off, you could try the free Nvu program I linked to in the reply just before yours.
    In TextEdit, there are two changes you need to make in Preferences:
    1. Under "New Document" set "Format" to "Plain Text.
    2. Under "Open and Save", uncheck "Add '.txt' extension to plain text files".
    This will make all future files you create to be plain text and will allow you to save the files using an .html extension.
    If you already have files created in TextEdit, open them, select everything by clicking Command-A, and then go to Format > Make Plain Text. Save the file. You may have to rename it if it does not yet have an .html extension.

  • HTML display Mathmetical X*X=X sup 2 /sub or Chemical formular H2O=H sub 2 /sub O. How to Text() Flex display?

    HTML display Mathmetical X*X=X<sup>2</sub> or
    Chemical formular H2O=H<sub>2</sub>O. How to Text()
    Flex display?
    Thz every idea.

    this link might help you
    http://www.subscriptfont.com/

  • HT5648 OS10.6.8 Firefox 24.0  The new Yahoo mail shows no graphics.  However, the new Yahoo mail displays correctly in Safari and Chrome.  I believe this has to to with the settings for Javascript.  Help me, please.

    OS10.6.8, Firefox 24.0 
    The new Yahoo mail shows no graphics using Firefox 24.0 - just identical rectangles where new icons should be.\.  However, the new Yahoo mail displays correctly in Safari and Chrome.  I believe this has to to with the settings for Javascript.  Those settings aren.t easy to access in the most recent Firefox 24.0 version.   Help me, please.

    The settings for Javascript are either on or off, Fireefox 24 doesn't give you a option to turn off Javascript, unless you installed something like NoScript extension (or some other Javascipt blocking add-on)
    If NoScript, then you need to use the View > Toolbars > Customize and drag the NoScript "Temp Allow All" button to the toolbar area to enable all enabled scripts (including Javascript) on that web page.
    Under the Firefox Help menu is a option to restart with add-ons disabled to see if something you might have installed is causing your problem.
    Reinstall Firefox or create another user account and run Firefox there to try to localize your issue.
    I'm having no problem here on 10.6.8 in Firefox, Chrome or Safari, Yahoo Mail works perfectly.

  • Outlook 2010 Calendar displays shifted meeting and appointments

    We use Exchange on 2003 SP2 and Outlook 2010 on the workstaions.
    Some workstations are WinXP SP3 and some W7 SP1 (64bit and 32bit)
    All appointment shifted to one hour later. That is if there was an apppointment which was 10:00 AM, it now shows as 11:00 AM
    New meeting request show one hour ahead, that is if an appointment for 7:30 AM is sent, i see it as 6:30 AM.
    The problem is we never have any such problem with Outlook 2007 and now, since we started to upgrade to Outlook 2010 it has started.
    Even now - there ia no problem with WinXP! The problem is ONLY on Win7.
    I checked we have no duplicate CDOEX and CDO dlls and even I re-registered both dlls.
    It does not seem to help.
    We work with DST disabled and it will not help!
    The problem is mentioned a lot but I seem to be unable to find a usefull answer.
    Regards,
    Marcel
    Marcel

    Hi Marcel!
    You should call in and open a support incident on this issue, as this issue is too involved to adequately work over a forum.
    That being said. I don't know if the script could\would have caused this issue. Do you have a Win 7 with Office 2010 box that you haven't run the script on? Are you seeing the issue from a Win 7 box that hasn't had the keys\values set?
    After checking out the keys\values the script sets and what they do, I'd then need to see a repro of the issue to make sure I understood exactly how the appointment was created and when the shift in time occurred.
    To dump an item's properties, you can use MFCMapi to access the item in the Exchange folder and save off the properties. Or OutlookSpy to go in through IMessage on the item and save the properties off as a txt file.
    At least you have the issue narrowed down to the Win 7\Outlook 2010 machines. Being that the situation you describe sounds like the machines are using the DST rules, I would begin by making sure that DST is definitely being disabled.
    Go into Regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
    Add a new DWORD value with the name "DisableAutoDaylightTimeSet" --Set its value to "1". Which equates to "Disabled".
    You can see more of an explanation of the setting here:
    http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/3e5adc56-7580-497e-a972-81d3b25a3e57
    Marcel, I don't like asking people to open support tickets. The whole purpose of the forums is to learn\share information and to help resolve\figure out
    what is happening.
    Sadly, in a case like this where the results don't match what is being done, we're probably looking at something in the environment on the Win7\Outlook 2010 machine, something external (app, device, etc) modifying the item, or the application not respecting
    the machine's DST settings.
    Were I to get your issue: I would start by seeing how many and who is affected.
    You've narrowed this to Win7 w/ Outlook 2010. Are all Win7\Outlook 2010 machines affected? --If the script is not run, and you set "DisableAutoDaylightTimeSet" to "1" manually, do you have the issue?
    Does anyone on the machine have the issue? --Have a working user logon to the Win7\Outlook 2010 machine and configure an Outlook profile and see if the issue reproduces.
    Is the affected user connecting to their Mailbox's Calendar from any other machines\clients? Devices? What about Delegates or people who have been granted access to their Calendar?
    If all the settings are showing DST disabled, but Outlook still puts the Appointment an hour off then we would likely want to get an iDNA trace while the issue was reproduced. The iDNA would allow us to track all the calls\functions Outlook 2010 is making
    up to and including the time shifting an hour off.
    At this point, I literally have nothing else to add or share with you. Please call in and I assure you we will help you to resolve this issue.
    Happy Easter to Everyone!
    Jahawk MSFT

  • Is it possible to link out to external URLs from within an HTML widget, and have them open in Safari?

    I can add links within the iBook content, but if they're added inside an HTML widget, the new page loads *inside* the widget itself, with no ability to navigate back etc.
    Is there any way to have external links inside an HTML widget open in Safari?
    Thanks,
    Mike

    Those links need to be local the the book, sorry.
    As always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
    http://www.apple.com/feedback/ibooks-author.html

  • Flash, Flex, and the iPad

    While there is no shortage of iPad/Flash discussions on the Adobe and Apple forums, after searching for a couple hours now I have been unable to find the answers to my specific question.  So please forgive me if I missed it somewhere.
    As I understand it, Apple does not support Flash for the mobile and iPad devices.  This is reiterated in a number of Apple forum postings that I just read, as well as Steve Jobs' rant here:
    http://www.apple.com/hotnews/thoughts-on-flash/
    However, I came across this Adobe press release from less than a year ago:
    http://blogs.adobe.com/ukchannelnews/2011/06/20/announcement-mobile-applications-for-andro id-blackberry-iphone-and-ipad/
    Apparently this Flex thing allows me to develop cross-platform mobile applications.  So I do some research on Flex, trying to figure out the difference between Flex and Flash.  I come across Adobe's FAQ here:
    http://www.adobe.com/products/flex/faq.html#flex-flash
    It's not real clear to me, but it sounds like what they are saying is that Flex is simply a programmatic framework around which I can build Flash applications, especially helpful for those more familiar with traditional programming.  If this is the case, based on Adobe's press release above, it sounds like I should be able to use Flash on the iPad via Flex?  What am I missing?  Is there other differences between Flex and Flash?  Or perhaps is it the difference between an application and browser support (like Apple's Safari)?
    Thanks in advance for your patience, and your help.
    3P

    It's easy Pea...
    Flash is a plugin. It runs from withing the browser IE, Firefox, Safari, Opera, etc... It also can be run standalone, via special exe program on Windows platform.
    Although this is less common. Here are all the Flash versions: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
    AIR is a cross platform runtime, kind of like Java (build once run everywhere). But with AIR it's a bit more tricky. You have to compile your program to each target platform (Desktop, Andriod, BlackBerry, iOS) separately. It's not like with Java where you can indeed run your jar file on lot of platforms. AIR is essentially Flash "on steroids" as it mostly has the same API as Flash and builds on top of it. But AIR not in the pluging form, i.e. you don't need a web browser to run it from.
    Here are the latest AIR runtime: http://get.adobe.com/air/
    and SDK: http://www.adobe.com/devnet/air/air-sdk-download.html
    You will need AIR SDK to build AIR applications and it has to be overlayed on top of Flex SDK which you can find here:
    Flex SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.6
    Now Flex SDK is essentially a component framework. You will need a button in your application, or a Video component, right? So that is what Flex provides for you free of charge.
    Obviously this sound simple but Flex is much more then that and here is your
    Flex documentation: http://www.adobe.com/devnet/flex/documentation.html
    So, Flex is a component framework which lets you build applications which target either Flash or AIR as executable runtime. For Flash it is called Web application and it runs from withing browser or standalone Flash player. For AIR it is called Desktop or Mobile project and it runs from withing AIR runtime which has to be installed on your device or bundled with your application.
    Now, speaking of Steve rants, yes, they wanted to kill Flash on their platform, there was even a guy there who was responsible for that result (I forgot his name but you can google), although Adobe never admited that and played it nice with Apple. Why they wanted to kill most expressive and complete vector and video engine on the web (Flash)? It's simple! This is beacase they wanted to play on their nice and cozy iOS/iPad/iPod playground alone! Because they want to control the delivery of the content from publisher to consumer. they want to stick their proprietory products and specifications in between and skim the money! That is why they don't need Flash in the browser. Flash allows people to publish and consume an impressive content without charging a dime! That includes H264 video among other things. And that is what Apple doesn't want to see.
    Good luck with Flex and everything else,
    SdS

  • My Safari is stuck on on a webpage  "survey.tubgalley.xyz....."  It also has a pop up box with "Congratulations you are today's lucky winner, click OK to continue".  I can't close these out, and have tried force quiting Safari and shutting down.

    My Safari browser is stuck on a webpage "survey.tubgalley.xyz...." and there is a pop up with "Congratulations, you are today's lucky winner, Click OK to continue".  ( I have not of course clicked on it!).
    I have tried quitting Safari, and shutting down my computer.
    I have block pop ups enabled in preferences.
    I have Mac OS X  10.7.5
    2.5 GHz Intel Core i5
    4 GB 1333 MHz DDR3

    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide, AdwareMedic, or Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support.
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
    Fix Some Browser Pop-ups That Take Over Safari.
    Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      OS X Mavericks- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect everything targeting the Mac.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

Maybe you are looking for

  • How to delete individual entries in safari

    hello people, i would like to delete some of my entries in safari. safari allows only to delete all of them. but i want to keep some in firefox i can deleted them by pushing "shift+del" here is a picture of an example. http://imageshack.us/photo/my-i

  • Digital Signature and Annotation Appearance Stream

    Hello, I've noticed that adding an annotation on a pdf without specifying an appearance stream ( AP dictionary ) for that annotation, and then signing the document, will cause Acrobat to report that the document is Signed and all signatures are valid

  • Mp4(H.264) dropping frames when importing

    Hello there, New to the forums. I am having a unusual problem with premiere pro version 4.0.0. I am trying to import and edit a few mp4 clips but when I import them the framerates are being cut in half. so the original video is 23.97fps and is ending

  • Problem in html:select

    MY problem is my html:select <html:select property = "planetID" size = "1"> <html:option value = "1">one</html:option> <html:option value = "2">two</html:option> <html:option value = "3">three</html:option> <html:option value = "4">four</html:option>

  • TextAnim - i need a running example. and please hurry :)

    hi y'all, i urgently need help with something which should be very straightforward: i am unable to use TextAnim - no matter what. could anyone please send me a complete source code of a running example? whatever i do - i run into an exception or a co