Change orientation distorts the content of the screen on Dev Alpha (10.0.6.545)

I use the Beta 2 SDK and my Alpha Dev is updated to 10.0.6.545.

I want my application to support the changes in orientation from portrait to landscape and back. To implement, I followed the tutorial at:

https://developer.BlackBerry.com/Cascades/documentation/dev/orientation/index.html

When I flip the Alpha of Dev to change the orientation of the fashion portrait to landscape mode, it works. But when I flip it back to leave for the portrait, the content of my app's screen gets distorted / destroyed somehow so that more or less garbage appears. It is not just a question that all of my components are not moved or something (I understand I must handle this) but the screen content is garbled. When I go again in landscape mode it seems ok again. But when I go to the portrait of the screen is still once deformed. Here is a screenshot:

I've found that I can reproduce this behavior also with examples of applications like weatherguesser and also with costs projects created from the project templates as examples NavigationPane or TabbedPane when I just turn on self-orientation in their bar - descriptor.xml file and just add an onCreationCompleted handler in their main.qml:

onCreationCompleted: {
    OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
}

Since the orientation change works very well for the operating system itself and the browser pre-installed too, and only my apps are affected, I think that I'm doing something wrong. Any tips?

Is the source code for the tutorial above available as an archive available for download somewhere? I want to check it out.

Or is it is a known issue in Beta 2? (I did not implement the change in orientation of support before Beta 2).

(I have not found anything on this issue in the issue tracker.)

Thanks in advance

I've updated to Beta 3 SDK and the Dev Alpha 10.0.9.388 and this bug seems to be fixed.

Tags: BlackBerry Developers

Similar Questions

  • The size of the screen wrong (Dev Alpha)

    OK - I have this

    A Dev Alpha is 1280 x 768 - I trust the source of this info (BB guy)

    Try something silly like that...

    Alert (window.innerWidth + 'x' window.innerHeight);

    I get the numbers - gimme a sec...

    Thing stupid password

    570 x 342

    Huh?

    Hi, I had the same problem. You must add the following:

     
    

    Source: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-set-up-the-viewport-for-a...

    Have a great day!

  • Portege Z20T: Windows 10 - change the orientation of the screen don't work

    Hello

    in the instructions:

    Change the orientation of the screen
    When you use the computer in tablet mode, you can change the orientation of the screen of the computer on the side routing. The screen orientation automatically changes depending on the angle of rotation detected.

    But he won't!
    The operating system is windows 10.

    What can I do?

    This response from Toshiba is a scandal.

    Tut mir sehr leid, dass Sie eine negative Erfahrung mit your Toshiba Gerät machen track.

    Hotel der Themen-Komplexitat und moglicher necessary aufgebaute können Anfragen zur configuration und von the Installer (Treiber, operating system etc.) nicht immer completely by email where werden. WIR bitten daher UH Verstandnis.

    This use Sie bitte unsere umfangreichen online Supportangebote oder wenden Sie an unsere expert unter 0900-18674422 (1.56 Euro/Minute).

    If Sie noch questions haben, zögern Sie bitte nicht, Rubis mit each Kontakt aufzunehmen. You can reach each Montag bis Freitag von 8.00 Uhr bis 18.00 Uhr unter der 52 40 40 00 (0 21 31) telephone

    MIT thank wurde.

    A.i. EMI Service

    Who can help you, what does not help support? ??????????

  • change the orientation of the screen?

    How can I change the orientation of the screen?

    Hello

    Try to press Ctrl + Alt + up ARROW, or try Ctrl + Alt + and a different key to the arrow.

    If this does not work: right-click on empty office rotation - graphics options.

  • Looking for driver for the button change the orientation of the screen on the x 60 tablet.

    I just installed a new OS (Windows 7 64-bit) and I can't find the drivers for a button on the work of the tablet which changes the orientation of the screen.  Help, please.

    I found this, thanks

  • Doubts in the Orientation of the screen

    Hi guys, I'm developing my component. In it, I add the LabelField which displays the width of the screen, and when I change the orientation, the LabelField does not replace the old width of the labelfield, but may make changes to the things that are done in the paint while screen orientation.

    How to change.

    It's code

    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    import net.rim.device.api.ui.component.LabelField;
    
    /**
     *
     * @author rakesh_2
     */
    public class Component extends Manager
    {
        LabelField ld;
        int val;
        String s,s1;
        Font ft,temp;
        Component()
        {
            super(Manager.FOCUSABLE);
            chk();
            ld=new LabelField(s);
    
            this.add(ld);
    
        }
    
        protected void sublayout(int arg0, int arg1)
        {
            chk();
    
            Field ff=this.getField(0);
            this.setPositionChild(ff, 5, 5);
            this.layoutChild(ff,Display.getWidth(), Display.getHeight()/2);
            this.setExtent(Display.getWidth(), Display.getHeight()/2);
    
        }
        public void chk()
        {
            val=Display.getWidth();
    
            s=String.valueOf(val);
            s1=s;
        }
        public void paint(Graphics g)
        {
            g.drawText(s, 15, 15);
            super.paint(g);
        }
        public void paintBackground(Graphics g)
        {
            g.setBackgroundColor(Color.LEMONCHIFFON);
            g.clear();
        }   
    
    }
    

    So how do you change the LabelField width on the orientation of the screen?

    Concerning

    Rakesh Shankar.P

    The values returned by Display.getWidth and Display.getHeight need to change after the rotation of the screen.  Screen rotation may or may not change the size of a field.  For example a field cannot take the width of the screen in portrait or landscape mode, so you won't see any changes.

  • The orientation of the screen turned sideways!

    My dog stepped on the keyboard and the orientation of the screen is now sideways. How back to the normal orientation?

    Hello
    1. try Ctrl + Alt + arrow right key (or possibly left or up or down arrow.)
    2. go to display settings (from Control Panel or right click on the desktop) and look for an option to rotate the screen.
    3. check the system for an icon for Nvidia Control Panel or similar tray and look for the option "rotate screen" there.

    Hope this helps,
    Don

  • How can I change orientation of the default print Windows 7 landscape to portrait painting?

    Original title: Windows 7 default paint print orientation.

    How can I change orientation of the default print Windows 7 landscape to portrait painting?

    I would not be forced to change every time I have use Paint.

    Thank you, Jay

    Hi Jay,.

    There is no option available to change the orientation of the default Windows 7 Paint print.

    However, you can set default print options to print landscape and impression accordingly paint program.

    For more information, see this link:

    http://support.Microsoft.com/kb/305402

    Hope the helps of information.

  • Deactivation of the orientation of the screen for my application.

    Hello Sir/Madam,

    Please tell me how can I disable the orientation of the screen as my app looks good horizontally. Thanks in advance.

    Kind regards

    Sandesh

    This can be achieved by adding the code to your file config.xml below

    
    

    Please see the link for more details below. http://docs.BlackBerry.com/en/developers/deliverables/27280/Widget_element_834671_11.jsp

  • Lightroom 6 suddenly very slow.  All my changes drag on the screen at least + 10 seconds.  The screen seems frozen between each edition.  I use a macbook pro and all my programs are up to date.  Help, please

    Lightroom 6 suddenly very slow.  All my changes drag on the screen at least + 10 seconds.  The screen seems frozen between each edition.  I use a macbook pro and all my programs are up to date.  Help, please

    Hi janeslens,

    • Go to Lightroom > Preferences.
    • Also please go to preferences > Performance tab and uncheck the box "use graphics processor.
    • Restart Lightroom and see if it works.
    • Please make sure you also update of Lightroom to the latest version, which is 6.3 Lightroom

    Let me know if it helps.

    Kind regards

    Tanuj

  • How to change the orientation of the screen back? Children changed his mind on the side?

    Hi, how can I change my screen orientation.  My child play with the computer and now I'm going to have to look at my laptop on the side.  The screen orientation East-West not North-South.  All suggestoins on where change setting? Thanks in advance

    Press CTRL + ALT + left arrow or CTRL + ALT + right arrow to rotate the image on the screen. Boulder computer Maven
    Most Microsoft Valuable Professional

  • change the orientation of the screen from vertical to horizontal

    I ran a quick scan on mcaffee and after I went to close my screen orientation went from vertical to horizontal, i.e. the top of the page to the right of the screen instead from the top of the screen.  How can I change this back?

    It is generally a function of your video card. With the help of the CTRL or the ALT key in conjunction with the arrow keys, you should be able to rotate the screen back. You can also try right clicking on an empty space on your desktop and search for context of graphics Options menu, graphics properties or something similar. Then look for Rotation or Orientation, or, possibly, landscape and Portrait.

    I hope this helps.

  • the orientation of the screen changed from horizontal to vertical. How do I change it back?

    I wrote an email on my laptop and accidentally I must have pressed some keys that changed the direction of the horizontal vertical screen. I can't change this back. Help, please.

    I guess that this affects all applications and not just Firefox...

    I've not heard of this feature. It's a computer laptop convertible tablet /?

    You might check the Fn key combinations, is often printed on the function keys, to see if one of those looks that it rotates the screen.

    If you can't find the key combination, it would be useful to know what type of device, but in case anyone has any experience with it.

  • Change the Orientation of the screen in Blackberry?

    In my application, I want to show the screens depending on the Orientation. For the screen Orientation, I read a few posts and after that, I created like this in my application.

    I knew that, whenever the device is oriented then sublayout() current screen method is called. According to this point of view I write like this:

    It's my Startup.java class

    public class StartUp extends UiApplication
    {
        public static boolean isLandscape=false;
        public static int width=480;
        public static int height=360;
        public static void main(String[]args)
        {
            StartUp start=new StartUp();
            start.enterEventDispatcher();
        }
        public StartUp()
        {
            screenOrientation();
            this.pushScreen(new LoadingScreen());
        }   
    
        //here I gave directly the device width and height because I am testing it 9800 Touch Screen;
    
        public static void screenOrientation()
        {
            if(Display.getOrientation()==Display.ORIENTATION_LANDSCAPE)
            {
                isLandscape=true;
                width=480;
                height=360;
            }
            else
            {
                isLandscape=false;
                width=360;
                height=480;
            }
        }
    }
    

    Ignore the video, we thought you were doing the difficult things in your managers to do with layout and it is sometimes easier to do everything yourself.  But not in this case so I don't think you need to create a special manager.

    If all managers of your follow these steps:

    protected void sublayout (int maxWidth, maxHeight int)
    {
    super.sublayout (maxWidth, maxHeight); Image width and height.
    setExtent (maxWidth, maxHeight);
    }
    so in fact I'm worried.

    You must NOT affect the scope of the managers of the space given to them.  You must set the space they need.  You don't control the page layout, so in fact you shouldn't publish the setExtent yourself at all.

    If you call sublayout to allow the Manager to ask, then you should allow to set its own measure.  So remove the setExtent.  And if you do this, so your overridden sublayout didn't do anything.  And if you must delete it.  In fact, because sublayout gets percolated down to all managers, these managers automatically call sublayout and re - orient.  And, as I mentioned before, most of the fields will reorient themselves too.

    So, in summary, given the code I've seen here, I think that you can completely ignore bows, because I think that he will manage the code provided.

    Only consider override sublayout to manage tilts when the default processing does something stupid.

    I therefore recommend that you remove all processing of your sublayout and try out it.  What is going on?  Tell us which does not work properly and we can suggest something to help this specific situation rather than make everything complicated.

  • Need help to change the orientation of the screen

    Original title: screen oriantation

    Hello, my daughter pressed some keys on my laptop, and the image turned round on the screen, I'm sure it's a combination of keys to press to turn back but I can't find it on help, someone knows how to get the image on the right screen upward once again... Thank you

    Sunday, February 2, 2014 08:50 + 0000, ElaineRichardson wrote:

    Hello, my daughter pressed some keys on my laptop, and the image turned round on the screen, I'm sure it's a combination of keys to press to turn back but I can't find it on help, someone knows how to get the image on the right screen upward once again... Thank you

    The ability to rotate the screen image is a characteristic of your video
    card, to help work with instructors who turn to the portrait
    orientation. Almost certainly she accidentally pressed Ctrl-Alt, and
    an arrow key.

    Rotate using these keys.

Maybe you are looking for