Hybrid View

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    11
    Vote Rating
    0
    sheehsim is on a distinguished road

      0  

    Default PhoneGap [0.9.2] and Sencha Touch [1.0.1]

    PhoneGap [0.9.2] and Sencha Touch [1.0.1]


    Hi every body!

    First of all, sorry for my bad english, I speak French.

    I recently discover PhoneGap and Sencha, I would try this technology in order to check if in the future we can use this in our projects. I easily setup the Kichen Sink Demo in PhoneGap. Everything work great except for Orientation Change. I read on this forum and somes other and maybe I don't understand but i always see a error in result.

    After the orientation change, the list is store only at the left of the screen and after i touch the screen, the list go up at the middle of the screen... I add a screenshot of the result!

    There is the code I use and the result I receive!

    HTML Code:
    // If you want to prevent dragging, uncomment this section
    function preventBehavior(e) 
    { 
         e.preventDefault(); 
    };
    document.addEventListener("touchmove", preventBehavior, false);
    	
    function onBodyLoad()
    {
         document.addEventListener("deviceready",onDeviceReady,false);
    }
    	
    /* When this function is called, PhoneGap has been initialized and is ready to roll */
    function onDeviceReady()
    {
    	Ext.setup({
    		
    		tabletStartupScreen: 'resources/img/tablet_startup.png',
    		phoneStartupScreen: 'resources/img/phone_startup.png',
    		icon: 'resources/img/icon.png',
    		glossOnIcon: false,
    
    		onReady: function() {
    			sink.Main.init();
    		}
    			
    	});
    		
    	Ext.EventManager.onWindowResize(setActivePanel);
    		
    }
    	
    function setActivePanel(){
    	sink.Main.ui.setOrientation( Ext.getOrientation() , window.innerWidth , window.innerHeight );
    };
    Attached Images

Similar Threads

  1. Sencha Touch List components not scrolling in PhoneGap
    By dorchard in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 12 Dec 2011, 8:20 AM
  2. Phonegap debug.log Blows up my Sencha Touch UI
    By mediamacros in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 1 Nov 2010, 5:55 AM
  3. Phonegap + Sencha Touch: Working in simulator, not on device.
    By igaenssley in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 9 Sep 2010, 7:20 AM
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi