Inner and outer window height from 346 on Q10

Hello

I have an application based on sencha touch 2.1, for this I replaced the Ext.viewport.Viewport and there I found that window.innerHeight and Window.outerWidth from 346 and complete application UI become blurred.

If I run the same application on ripple Server emulator Q10 that it is in very good shape. In the emulator, I get the inner and outer height 720.

Please give me a workaround to resolve the problem.

Thank you & best regards

Arun

Ext.define ('Ext.viewport.Blackberry', {}
expand: "Ext.viewport.Default."
constructor: function {(config)
This.superclass.config.Height = this.getWindowHeight () + "px";
this.callParent ([config]);
Back to this;
},
getWindowHeight: function () {}
       
needs more height of the browser ONLY when you run in webworks.
If (Ext.os.version.match ('7.0')) {}
Back to 640;
}
If (Ext.os.version.match ('7.1')) {}
Back to 640;
}
return window.innerHeight;
}
   
}, function () {}

});

Insert a new Blackberry specific display window
Ext.define ("Ext.viewport.ViewportOverride",
{
replace: "Ext.viewport.Viewport."
constructor: function {(config)
Alert ("Ext.override Ext.viewport.Viewport" + Ext.os.name + "vr" + Ext.os.version);
var osName = Ext.os.name,
viewportName, window;

switch (osName) {}
case "Android":
viewportName = (Ext.browser.name == "ChromeMobile")? 'Default': "Android";
break;
           
case 'iOS ':
viewportName = 'Ios ';
break;
           
case "BlackBerry":
case study 'the other ':
viewportName = "Blackberry";
break;

by default:
viewportName = "Default";
}

Viewport = Ext.create ('Ext.viewport' + viewportName, config);
return the viewport;
}
});

This will be your meta tag

Try something like this at the beginning of your HTML code

   if(typeof window.devicePixelRatio != 'undefined') // Does device support devicePixelRatio?
        {
        dpr = window.devicePixelRatio;
        }

    var meta = document.createElement("meta");
    meta.setAttribute('name','viewport');
    if(dpr) // Set up the right meta
        {
        meta.setAttribute('content','initial-scale='+ (1/window.devicePixelRatio) + ',user-scalable=no');
        }
    else
        {
        dpr = 1;
        meta.setAttribute('content','user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,height=device-height,width=device-width');
        }

The reason for that happening is that Q10/Z10 have screens high density with a devicePixelRation around of 2 so the lack of scale to about 0.5 (the above is the exact amount)

Tags: BlackBerry Developers

Similar Questions

  • No one knows what buttons to press so I can format and reinstall windows xp from scratch?

    Hi all.

    Hi all. No one knows what buttons to press so that I can format and reinstall windows xp from scratch on my lap top compaq pentium 4 from a CD-ROM.

    Thank you.

    E-mail address is removed from the privacy *.

    Hello

    In your other thread, you said that your XP CD is damaged.

    The manufacturer normally gives you one way or the other to reinstall; not both.

    If you had a recovery partition, this is the information:

    http://h10025.www1.HP.com/ewfrf/wc/document?CC=au&LC=en&docName=bph07145#N296

    1. Turn on the computer.
    2. Just after the first screen display (the display of the logo), press the F10 key repeatedly until a recovery menu appears.
    3. etc.

    See you soon.

  • Can I buy and download Windows XP from Microsoft today?

    Can I buy and download Windows XP from Microsoft today?

    Wednesday, November 24, 2010 19:45:41 + 0000, Antares2600 wrote:
     
    > Can I buy and download Windows XP from Microsoft today?
     
     
    ................................................................................................
     
    No. Microsoft is no longer manufactures or sells it. You * may * be able to find a
    Copy in a store or website. You can probably find copies on eBay, but
    Personally I would not buy an operating system too many people
    were burned there with pirated software.
     

    Ken Blake (MS-MVP)

  • Audio on inspiron 7000 13 10 fades in and out, windows with a deaf quality

    Audio for all media through the speakers will become deaf to every few seconds, and then return to normal quality to become deaf again. This only happens with the speakers, though, as the helmet seems to work well.

    I think I found a solution!

    Right click on the speaker icon on the lower right part of your screen (sorry, don't remember the English name for it) and choose "Playback devices", you will get the sound menu. Click the Communications tab. You will find a set of options to "when windows detects the activity of communication:

    Choose "do nothing".

    This problem solved for me, hope it helps guys too. Sorry for my English, I'm not a native speaker.

  • Hard drive is about to fail. Y at - it anyway to get a copy of my platform operations is back with out and out window 10.

    I was wondering.  When this hard drive goes down and after I do system back up Will I need to buy a new operations * windows platform or I'll be able to download my old version so I can use the new hard disk?

    Hello

    Thanks for posting your query on the Microsoft Community.

    I suggest you to try the steps in the below mentioned thread and see if it helps you to solve the problem.

    A PC, why warn of a hard drive failure and tell me to run backup?

    Hope that the information provided is useful. Let us know if you have any concerns related to Windows. We will be more than happy to help you.

    Kind regards

  • When I try and download windows 7 from the internet it tells that my connection is not stable what should I do?

    He tells me that my connection is not stable, but I can do everything he tells me on google chrome and internet explore. I also did what he told me and still can't download.

    Try to use an Internet Download Manager:

    Internet Download Manager - free software downloads and software...

  • C to format and reinstall Windows XP

    Need simple instructions to reformat my Dell daughter portable c drive and reinstall Windows XP from cd.  Suppose that then I have to install Service Packs.  Thank you.

    Need simple instructions to reformat my Dell daughter portable c drive and reinstall Windows XP from cd.  Suppose that then I have to install Service Packs.  Thank you.

    Simply boot from the installation CD and follow the instructions for a clean install. It will begin by formatting the drive for you.

    Why do you do this? It is almost always a mistake and often creates a lot of work and a lot of problems.

  • Is it possible to go back and reinstall windows 7 Windows 8 preview?

    Original title: overview of Windows 8.

    I installed windows 8 preview copy, on my desktop computer that was running windows 7. is it possible to go back and reinstall windows 7 from hard disk or restore point, I'm not quite sure.any to help?

    Hello

    There are different methods to reinstall Windows 7.

    You can contact your computer manufacturer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    _________________________________________

    This may or may not work as you have changed the original operating system:

    And if you have never received a recovery disk when you bought your computer, there should be a recovery on the drive Partition hard reinstall Windows how much you bought your computer.

    The recovery process can be started by pressing a particular combination of the key or keys at startup. (Power on / start)

    Maybe it's F10, F11, Alt + F10, etc., depending on the manufacturer.

    Them or us ask the right sequence of key.

    _________________________________________

    Or download the correct ISO file and make your own drive and use the product key located on the COA sticker.

    http://www.w7forums.com/threads/official-Windows-7-SP1-ISO-image-downloads.12325/

    And Neosmart has instructions on how to burn ISO disk images using imgburn:

    http://NeoSmart.NET/wiki/Burning-ISO-images-with-ImgBurn/

    The COA sticker is either or in the battery compartment on the underside of the laptop.

    By using the downloaded ISO file method can require the Activation of phone.

    If it does require phone activation, do not follow Auto guests, but hold on a real person explain as to what has been done for purposes of re-setup

    "How to activate Windows 7 by phone '

    http://www.SevenForums.com/tutorials/18715-activate-Windows-7-phone.html

     

    ___________________________________________

    Using the above downloaded ISO method, you would also have to go to the website of the manufacturer of your computer > software and drivers downloads Section > key in your model number and operating system > and then download the appropriate drivers for your model.

    See you soon.

  • Now that windows 8 is out and the store is a store 8 How to buy windows 7 from microsoft?

    How can I buy windows 7 from Microsoft when the store sells only 8?

    Please - I know that I can get from a retailer!

    My question is why can't buy Microsoft, why was it removed from the store when it is not yet near end of life?
    I understand the new product "flagship" of positioning, but seriously, completely remove 7 - BEST PRODUCT of MICROSOFT FAR and using sayings like "it's 7, but better?"

    I hate to burst your bubble, but it's not better it's a mute version 7 for lazy people learn a real operating system. IMO

    Retailers will sell Windows 7 for a long time, as they did with XP (which is still in the stores). Microsoft, on the other hand, does not benefit from the sales and to improve existing products for too long. They put in place a life cycle of three years for their operating systems, and we invite you to follow this path (even if there is no 'natural reason' for a good product become obsolete within three years).

    About the pro and cons of win 8 compared with Win 7, there are a lot of controversial opinions. Mine is pretty simple: I'm a writer, and my fingers are in need of a keyboard. A touchscreen is not sensible here. If read you, write and correct the large masses of text, you need a big screen. Not something with 7 or 10 ". If you need to compare different versions of an article, you must multi-fenetrage. Not a smartphone user interface with the apps full screen. Windows 8 is not made for my kind of work. It contains a version of dumbed-down of the old office, is not completely useless. All other "innovations", however, may be interesting for the devices people but not for me.

  • I have VSS enabled on my server sp2 Windows server 2003 and out of no where the tab versions previous disappeared...

    I have VSS enabled on my server sp2 Windows server 2003 and out of no where the tab versions previous disappeared for all users when you access from anywhere.  I deactivated and reactivated the snapshots and it won't come back please advise...

    Hello ErekBye,

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Windows Server 2003 and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

    Best regards

    Matthew_Ha

  • Want to export all my contacts and emails (in and out) to Windows Mail on Vista Ms.

    Original title: Windows Mail Export

    Hello

    I want to export all my contacts and emails (in and out) to Windows Mail on Vista Ms.

    Can someone explain the process please.

    Thank you in anticipation

    Robin.

    To configure Windows Mail to your Gmail address:

    1. Enable POP in your email account.  Don't forget to click save changes when you're done.
    2. Open Windows Mail.
    3. Click the Tools menu and select accounts...
    4. Click on Add...
    5. Select e-mail account, and then click Next.
    6. Type your name as you want it to appear in the ' from:' field of outgoing messages, and then click Next.
    7. Enter your full Gmail address (* address email is removed from the privacy *). Google Apps users, enter your full address in the format * address email is removed from the privacy *. »
    8. Fill in all necessary fields to include the following information:

      Incoming mail server type: POP3

      Incoming mail (POP3 or IMAP) server: pop.gmail.com. Google Apps users, enter the name of the server provided, do not add your domain name to these steps.

      Outgoing mail server (SMTP) name: smtp.gmail.com

      Outgoing server requires authentication: activated

    9. Click Nextand enter your full Gmail address (including * address email is removed from the privacy *') and your Gmail password. Google Apps users, enter your full address in the format * address email is removed from the privacy *. »
    10. Click Next, then check the box next to do not download my e-mail at this time. Click Finish.
    11. On the Internet accounts screen, make sure that your e-mail pop.gmail.com account is selected, and click the Properties button.
    12. On the Advanced tab, enter 465 in the in the box look of outgoing (SMTP) mailand check this server requires an encrypted connection (SSL).
    13. Check this server requires an encrypted connection (SSL) under mail incoming (POP3). The Incoming mail (POP3) box should be updated automatically to 995.
    14. Click on OK. You're done! Close the Internet accounts window, click send/receive to start checking your Gmail messages.

      If you have problems using POP with Windows Mail, please see the common errors or troubleshooting tab.

  • Cannot access my Comcast mail since the last update. I can access it from Safari and Microsoft Windows, but generally do not either of these browsers use

    Cannot access my Comcast mail since the last update. I can access it from Safari and Microsoft Windows, but generally do not use either of these browsers. I chatted with Comcast and they are the ones who asked me to try to gain access to other browsers. And, as noted, I managed. Only my opening my email to Comcast.net inhibits the Firefox, the browser that I use on a regular basis because of this problem I can't use Firefox.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Zoom in and out of the Web site Windows no dependencies a mouse - windows 7 pc

    I do not use a mouse on my laptop. Each time the window zoom in or out because that weighs a finger on the touchpad. How do I Zoom in and out in order to control the size of the window?

    Hello JRStef, you can reset the level of zoom of a page by pressing CTRL + 0 ("zero"). CTRL + -/ + decreases / increases the zoom.

  • Permanently delete an item from my library and computer - Windows, iTunes 12.3.3.17

    I want to permanently delete an item from my library and computer - Windows, iTunes 12.3.3.17

    I read this post from Apple. But I do not get option 3.

    Can someone please help.

    Link: 12 iTunes for Windows: delete the songs, playlists or other elements

    Option not to get:

    Do one of the following:

    • Remove the item from your iTunes library only: click on a file to keep.
    • Remove the item from your computer: click on move to the trash. The item is deleted the next time you empty the trash.

    The exact behavior on deletion depends on the location of the file in question as iTunes encourage you only to recycle the files located in the iTunes Media folder. Behavior also differs if you are working in a playlist rather than saying the main music source. Shift + delete can be used to remove it from the library while you watch a playlist. Removal of media bought may lead to additional confirmation dialog boxes, as well as the use of iTunes game or Apple's music.

    If you keep your media outside of the folder of media to iTunes standard see KillSelectedFiles for a script that does just what it says.

    TT2

  • I have just started with a new internet provider and get phone calls from a source to say that they are windows and the need to access my computer because its infected in windows. It is this true.

    I have just started with a new internet provider and get phone calls from a source to say that they are windows and the need to access my computer because its infected in windows. It is this true.

    No, it's a scam, ignore the call.

    Just hang up, they are trying to steal your information or to install a virus on your PC.

Maybe you are looking for

  • Satellite A300-243: CD/DVD-ROM does not work after installing Win 7

    Good day to all! I have a huge problem with my CD/DVD room.I've updated my A300-243 Satellite with windows 7 and now I can't burn DVDs, CDs, the DVRW. But when I had Windows Vista everything was normal. What should I do? Post edited by: Qualy

  • Debug64 don't like ATTR_ENABLE_POPUP_MENU

    Hello When you debug 64-bit code, I discovered another problem... I'm a panel with a loading table and the ATTR_ENABLE_POPUP_MENU; This works as expected if the build configuration has the 32-bit debug value. Change to debug 64 translates into an ERR

  • RAM for HP pavilion dv6 3004-SO

    Hello I am writing from Denmark. I want to upgrade my RAM 8 GB memory. Product number: XB526EA #UUW Serial number: [personal information deleted] Processor bicoeur AMD Athlon (TM) II N330 ATI graphics card (ATI Mobility Radeon HD 5470) XT with 512 MB

  • limitation of number 1 to 158 channel - Windows Media Center

    When I try to add a channel with a number in the 400s to my list of TV channels, I get a message error "Invalid Channel number - enter a channel between 1 and 158 number."  What is a limitation of Windows Media Center or my HDTV card (which is a Comb

  • BlackBerry Q5 always hot and drain, help me...

    This happened yesterday, when I go to sleep I put my q5 side bed in my body, and I sleep and forget to move my phone and its battery q5 still full, because I loaded, so when I wake up, my phone is hot and drined up to 10% and maybe just seeemed hit m