View resizes when it shouldn't

http://www.adobe.com/devnet/flex/articles/mobile-development-flex-flashbuilder.html#articl econtentAdobe_numberedheader_1
On this page it says: "When the user rotates the screen between portrait and landscape orientations, the View is automatically resized by default to the appropriate aspect ratio."
How can this be prevented i.e. make the view keep the same size?
If you use the screen orientation apis to confine the app to 2 orientations (rotated left and right), you can prevent the app rotating but the view resizes anyway.

Try this:
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" title="Home"
        addedToStage="initView()">
    <fx:Script>
        <![CDATA[
        import flash.display.StageOrientation;
        import flash.events.StageOrientationEvent;
        private function initView():void {
           stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGING, onOrientationChanging );
        private function onOrientationChanging( event:StageOrientationEvent ):void {
            if (event.afterOrientation == StageOrientation.DEFAULT || event.afterOrientation == StageOrientation.UPSIDE_DOWN )
                event.preventDefault();
        ]]>
    </fx:Script>
        <s:Rect height="100%" width="100%">
            <s:fill><s:SolidColor color="red" /></s:fill>
        </s:Rect>
    <s:Label text="Hello World" horizontalCenter="0" verticalCenter="0"/>
</s:View>
In the app xml:
<aspectRatio>landscape</aspectRatio>
<autoOrients>true</autoOrients>
<visible>true</visible>
Start the app on the ipad in landscape orientation. Turn it 90°. The red shape and actionbar do not fill the screen any more.
Any solution?

Similar Messages

  • Slideshow image resizing when adding new images

    I am creating a series of slideshows on multiple pages. I created one slide show using the "basic" slideshow and resized it to the dimensions and settings I wanted. I have many pictures all of different proportion, therefore, I selected the "fill frame proportionally" so they would all fit the dimension I set. I wanted to use this first slideshow as a template for all of the rest. I added images to this first slideshow with no problems. All of my different sized images scaled or cropped to fit within the dimension I set. The problem comes in when I do two things: 1) When I add other images of different dimensions to this same slideshow gallery, they come smaller that the intended dimensions I set previous. I check the setting and it is still on "fill frame proportionally" similar to the first batch of pictures. 2) The second issue is when copy this slideshow as a template to other pages. When I try to replace or add to the slideshow gallery, the images come in cropped or smaller rather than filling the frame. Again, the settings are still the same from my very first slideshow that worked just as i intended.
    I could resize all the images to all the same dimensions using another program like photoshop, but that is another step that is very tedious and it would seem that it should be something built into Muse.
    Is there a way around this?. Am I doing something wrong? Or is this just one of those glitches that happens with Muse? I appreciate any help that I can get.
    Thanks!

    Hi, I got it to work like this:
    Using background colours in Photoshop so that all sizes are the same in pixels. Then manually adjusting thumbnails by double-clicking on them so that a red square appears.
    Cheers,
    Elsemiek
    Op 26 dec. 2014, om 00:50 heeft MediaGraphics <[email protected]> het volgende geschreven:
    slideshow image resizing when adding new images
    created by MediaGraphics <https://forums.adobe.com/people/MediaGraphics> in Adobe Muse Bugs - View the full discussion <https://forums.adobe.com/message/7043933#7043933>
    Hi there Elsemiekagain,
    I had to fiddle around with my slide show to get it to work. That is, it worked at first, then went funky, and I had to fiddle. So much fiddling that I can't possibly know what actually made it start to work again.
    And to some degree, this is the way that I find Muse to be in general. That it requires finessing to get it to work as expected. This adds a good deal of time to every development project, though I am getting better at this with practice and experience.
    Most of it is not even things that could be easily put in words as instructions, as many are nanced. But in fairness, this version of Muse is a complete code re-write this year. So we do need to cut Adobe some slack, and give the team time to iron things out.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7043933#7043933 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7043933#7043933
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Muse Bugs by email <mailto:[email protected]ftware.com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=47 59>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • Sometimes I can't get out of Day view in iCal.  There is no where on the screen to select month view, even when I close it out and go back into iCal.

    Sometimes I am locked in "day" view in iCal.  There is no where on the screen to choose "month" view, even when I close it out and open again.  Tapping anywhere on the screen or scrolling doesn't help.

    Give this a try:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder: User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try full screen again.
    NOTE: For Mavericks and Yosemite,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.

  • Problem with Css styles not showing in live view or when i browse

    I am using Mac osx 10.6 and building website with Dreamweaver CS5.  Sometimes div tags i create not showing styles or rendering in live view or when I browse but  showing in design view. I looked in dreamwever faq and they talk about not showing in design view to toggle the display styles. That is not the problem becuase it is check marked and I tried turning off and turning on and made no difference.I am using firefox browser.
    It happened before the other day too. But all of my other pages in this site that i have created the same way building with div tags and css styles. So not sure what the problem is. Maybe someone has a suggestion here.
    Johanna

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Portfolio</title>
    <style type="text/css"></style>
    <link href="css/jbstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    </head>
    <body>
    <div id="wrapper">
      <div id="mainnav">
        <div id="navbar">
          <ul>
            <li><a href="index.html"><br />
            </a></li>
    <li>
              <ul>
                <li><a href="index.html">          Home</a><a href="about.html">About</a></li>
                <li><a href="portfolio.html">Portfolio</a><a href="contact.html">Contact</a></li>
              </ul>
            </li>
          </ul>
      </div>
        <div id="contentinside">
          <div id="navbar2">
            <ul>
              <li><a href="design.html">Design</a></li>
              <li><a href="multimedia.html">Multimedia</a></li>
              <li><a href="webdesign.html">Web Design</a></li>
            </ul>
          </div>
          <div id="mm1thumb">Content for  id "mm1thumb" Goes Here</div>
          <div id="mm2thumb">Content for  id "mm2thumb" Goes Here</div>
        </div>
        <img src="images/multimsidebar.gif" width="212" height="615" alt="mmsdbr" longdesc="http://multimsidebar" />
      <div id="footer">
        <p> </p>
        <p>Johanna Bresnahan</p>
        <p>Web &amp; Graphic Design - http://www.johannabresnahan.com</p>
        <p> email: [email protected] ....phone....857•991•5717<br />
      </p>
    </div>
    </div>
    <!--end wrapper--></div>
    </body>
    </html> 
    Here is the html code above. not sure how to attach my file so get a visual. This is the first time I have used this forum.
    Johanna

  • I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • IOS 7 Calendar on iPad I cannot go from month view to day view. When I tap on the day of the month nothing happens.

    I use to be able to look at my month in the month view and when I wanted to make an appointment for a specific day I just tapped that day and it would open up the day and I could add my appointment to the time slot I wanted. Now when I am in month view and I tap on the day I want to make an appointment it does nothing. If I hold my finger on the day it creates an All Day event which is not what I want to do and even if I add a start time to the event, I don't know what times I have available on that day because the Day view hasn't opened. This is extremely frustrating. On my iphone it works properly...I can go from month view to day view by tapping on the day I want to view. Why can't I do this on my iPad?? If I could go back to ios 6 I would, calendar is not impressive at all!!
    Please help with any suggestions or PLEASE APPLE.....FIX THIS!!!

    I just tested, and this unfortunately still seems to be a bug in the latest iOS 7.1 release of the Calendar on the iPad, which is too bad since the release notes suggest that this iOS update included both bug fixes and enhancements to the Calendar.
    To my knowledge the bug has never been an issue on the iPhone version of the Calendar which behaves exactly as you would expect it should.
    It seems inconcievable given the obvious broken-ness of the current behavior coupled with what I would expect is a massive number of people who use the Calendar on the iPad, but is it possible that this bug isn't on Apple's radar?
    I'm happy to submit a bug report; does anyone know offhand the process for how the public can report bugs?
    This has been persistent in the product for nearly six months; it's well overdue that this bug be squashed.

  • Unable to display tree view; Error when parsing an XML document (Premature end of file.)

    Hi folks,
    I am using a cascaded mapping in my OM. I have a graphical mapping followed by the Java mapping. It is a flat file to IDOC mapping. Everything works fine in Dev but when I transport the same objects to QA, the Operation mapping though it doesn't fail in ESR testing tool, gives the following message and there is no output generated for the same payload which is successfully tested in DEV. Please advise on what could be the possible reasons.
    Unable to display tree view; Error when parsing an XML document (Premature end of file.)

    kalyan,
    There seems to be an invalid xml payload which causes this error in ESR not generating the tree view. Please find the similar error screenshot and rectify the payload.
    Mutti

  • HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't

    HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't.  This happens over and over.  It used to sleep until I sent something to be printed. I now shut the printer down, but that takes a long time to start it up.

     When you finally get around to looking at my post, never mind.
    I reset the factory defaults on the printer and reauthorized my WiFi network.
    Now it is working.

  • Podcasts are syncing when they shouldn't be

    My iPod finally ran out of space so I wanted to remove some of the video podcasts from it. I have my podcast syncing set to sync the selected podcasts so I thought I could just uncheck the ones I didn't want to keep on my iPod and sync to remove them. That didn't work so I put my iPod in manual sync mode and removed them. I turned off the manual sync option and told it to sync again and it's copying all my podcasts (even the ones that aren't checked on the podcast tab). How do I make it stop so I can free up some space?

    Ok, I can confirm that the problem doesn't affect music playlists.
    I've also noticed that the files that get copied when they shouldn't take up more space than the ones that are supposed to be there. I noticed this by syncing, checking a podcast that was previously unchecked, then resyncing. It wasn't a lot of space, only around 10-25 mb.
    I've also found a workaround to get the files off my iPod. I have the "Sync only checked songs and videos" option checked on the summary tab for my iPod in iTunes. I can uncheck each individual podcast that I don't want to be on my iPod, then resync and they are removed. So I guess the problem is only present on the Podcasts (possibly movies and tv shows too) tab of the iPod screen in iTunes.
    Is there somewhere else I should go to submit a bug report?

  • JavaMapping in PI 7.1 Error:Unable to display tree view; Error when parsing

    hi,
    i get by testing in PI 7.1 (operation mapping) this ERROR:
    "Unable to display tree view; Error when parsing an XML document (Content is not allowed in prolog.)"
    this is my java-programm-code:
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import com.sap.aii.mapping.api.StreamTransformation;
    import java.io.*;
    import java.util.Map;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    /*IMPORT statement imports the specified classes and its methods into the program */
    /Every Java mapping program must implement the interface StreamTransformation and its methods execute() and setParameter() and extend the class DefaultHandler./
    public class Mapping extends DefaultHandler implements StreamTransformation {
    Below is the declaration for all the variables we are going to use in the
    subsequent methods.
         private Map map;
         private OutputStream out;
         private boolean input1 = false;
         private boolean input2 = false;
         private int number1;
         private int number2;
         private int addvalue;
         private int mulvalue;
         private int subvalue;
         String lineEnd = System.getProperty("line.separator");
    setParamater() method is used to store the mapping object in the variable
    "map"
         public void setParameter(Map param) {
              map = param;
         public void execute(InputStream in, OutputStream out)
                   throws com.sap.aii.mapping.api.StreamTransformationException {
              DefaultHandler handler = this;
              SAXParserFactory factory = SAXParserFactory.newInstance();
              try {
                   SAXParser saxParser = factory.newSAXParser();
                   this.out = out;
                   saxParser.parse(in, handler);
              } catch (Throwable t) {
                   t.printStackTrace();
    As seen above execute() method has two parameters "in" of type
    InputStream and "out" of type OutputStream. First we get a new instance
    of SAXParserFactory and from this one we create a new Instance of
    SAXParser. To the Parse Method of SaxParser, we pass two parameters,
    inputstream "in" and the class variable "handler".
    Method "write" is a user defined method, which is used to write the
    string "s" to the outpurstream "out".
         private void write(String s) throws SAXException {
              try {
                   out.write(s.getBytes());
                   out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startDocument() throws SAXException {
              write("");
              write(lineEnd);
              write("");
              write(lineEnd);
         public void endDocument() throws SAXException {
              write("");
              try {
                   out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startElement(String namespaceURI, String sName, String qName,
                   Attributes attrs) throws SAXException {
              String eName = sName;
              if ("".equals(eName))
                   eName = qName;
              if (eName.equals("NUMBER1"))
                   input1 = true;
              if (eName.equals("NUMBER2"))
                   input2 = true;
         public void endElement(String namespaceURI, String sName, String qName)
                   throws SAXException {
              String eName = sName;
              if ("".equals(eName))
                   eName = qName;
              if (eName.equals("NUMBER1"))
                   input1 = false;
              if (eName.equals("NUMBER2"))
                   input2 = false;
         public void characters(char[] chars, int startIndex, int endIndex)
                   throws SAXException {
              String dataString = new String(chars, startIndex, endIndex).trim();
              if (input1) {
                   try {
                        number1 = Integer.parseInt(dataString);
                   } catch (NumberFormatException nfe) {
              if (input2) {
                   number2 = Integer.parseInt(dataString);
              if (input2 == true) {
                   addvalue = number1 + number2;
                   mulvalue = number1 * number2;
                   subvalue = number1 - number2;
                   write("" + addvalue + "");
                   write(lineEnd);
                   write("" + mulvalue + "");
                   write(lineEnd);
                   write("" + subvalue + "");
                   write(lineEnd);
    in developer studio 7.1 i dont get error.
    this happens by testing the mapping-programm in ESR.
    can somebody help me please?

    Make sure that the xml created out after the java mapping is a valid xml with only one root node.
    Regards,
    Prateek

  • "Restore last view settings when reopening documents" option not working with all documents

    Said option (found under Edit/Preferences, category Documents), which works like an automatic bookmark in that it takes you back to the same place you were at when you last closed a document, is very useful, but apparently doesn't work with *all* documents.
    - Does anyone know what determines whether a given document works with this option or not?
    - Is this by design or a bug? A matter of PDF format version?
    - Is there a way to work around the problem?
    I've compared two documents, only one of which works with the option, to determine what the relevant difference may be, and found two suspects (under File/Properties): the PDF version (1.5 in the document that works, 1.4 in the one that doesn't), and 'Fast Web View' ('yes' in the document that works, 'no' in the one that doesn't).
    Thanks,
    Michael

    This seems to be a problem with some PDF files.
    Suggested workaround: If the PDF you have allows "Save As", then try save-as to a new file. The "Restore last view settings when reopening documents" option should then work as expected (in the new file).
    (Original post: Restore last view setting not working in version XI)

  • Issue with viewer zooming when playing

    I am having an issue that I don't quite know how to fix. When I drag a video clip into the timeline in FCP, when I play the clip it zooms in the viewer but when I stop the clip it goes back to the original view. No matter how many times I play it will zoom until the moment I hit stop. Any information that anyone could help me with I would greatly appreciate it. I am in the middle of an important project and encountered this issue. Thank you.

    Hi, I used the preference manager but that didn't help. I did realize though that I needed to change the ratio. I was able to figure it out and correct the problem. Thank you so much.

  • AfterValueChange event trigged when it shouldn'tbe...

    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Thanks for the replies so far, but this is not the problem. I know about
    the "Validate on keystroke" option and it is definitely swithed off.
    I was rather thinking along the lines of this being be a 'funny' in
    Forte. Has anyone seen this before? Here is more information:
    1) The windows that it is happening on all have parent windows.
    2) The fields with this problem are all part of a mapped gridfield, ie.
    it has a type.
    However, I have constructed a test class with these characteristics, but
    it is no good. There must be something else that could cause this. Any
    ideas?
    -----Original Message-----
    From: Rottier, Pascal [SMTP:[email protected]]
    Sent: Friday, October 09, 1998 10:53 AM
    To: Fouche, Jaco
    Cc: Forte Users Mailing list
    Subject: RE: AfterValueChange event trigged when it shouldn't be...
    Hi Jaco,
    Check if the option "Validate on keystroke" is set
    to true on the widget that posts the AfterValueChange.
    If so, than that's the reason. Turn it off and your
    problem will go away.
    Pascal
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie.
    the
    field loosing focus. The problem is that I'm trying to recreate this
    in
    a simple test class, but now it won't happen. I still have the
    original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Dynamic text resizes when loaded?

    I made sure to set the stage to noScale but I am still having
    a strange problem that is driving my nuts. If I make a static text
    box it will not resizing when I compile and preview or upload the
    swf. However, if I make a dynamic text box, the text size increases
    slightly when i complile the swf. This makes fine tuning the layout
    of web pages extremely difficult because what i see on the stage is
    not the same size as what i see when the swf is complied. Has any
    one else had this problem or know how to solve it because its
    really starting to drive me nuts?

    The only time you should see a size difference is when you
    take text out of a movie clip that has been scaled. Hit Crtl-t to
    get the Transform window and see if the object is %100

  • Table style doesn't display when viewed or when project is published

    I'm running RH8 (with RH8 Server).  The table style no longer displays when viewed or when published.  I checked the table style of the same project (but older version) and the styles to me looked the same.  It displayed fine last week (famous last words), but this week something changed. Can anyone help?
    The tablegradient.jpg can be seen in the project (image A), but when I view (eyeglasses), or if I open a published project, it doesn’t (image B).
    Image A
    Image B

    I really do not know what has caused this but in your situation I would be looking at the CSS for the table now and when it worked.
    After that I would probably create a new project and create the same setup afresh. That can often identify the cause of problems like this.
    Sorry I don't have anything more constructive.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for