1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
    uhuru is on a distinguished road

      0  

    Question get the device screen width and heigth?

    get the device screen width and heigth?


    Hi. I need to know the size of the screen because I'm using a popup panel and I want its width to be the 90% of total width.

    I've been looking for something on the touch API and i've tried with some "Ext.Element" methods like: Ext.Element.getOuterWidth()*0.9, Ext.Element.getViewportWidth()*0.9 , Ext.Element.getWidth()*0.9

    I think I'm not looking in the right place.

    Can anyone help? Thanks.

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Just use javascript screen.width and screen.height...

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
    uhuru is on a distinguished road

      0  

    Default


    getViewportWidth()*0.9 worked. The problem was a missing '}'. Can anyone delete this thread? Thanks!

  4. #4
    Sencha User
    Join Date
    May 2011
    Location
    Singapore
    Posts
    3
    Vote Rating
    0
    sumon86 is on a distinguished road

      0  

    Question How cani get the records from data store?

    How cani get the records from data store?


    I created the below datastore

    Ext.regStore('Cart', {
    model: 'Product',
    //autoLoad: true,
    proxy: {
    type: 'sessionstorage',
    id: 'shoppingcart'
    }
    });

    I want to get the individual records from this datastore. I don't want to show in listview or other component. Please help me. I am very new to sencha touch.

Similar Threads

  1. How let items of tabBar fit the screen width?
    By Peter.Chen in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 14 Jan 2011, 1:46 PM
  2. While Using Tabpanel width of screen goes to 1400 px
    By alok000707 in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 Nov 2010, 4:22 AM
  3. Replies: 4
    Last Post: 9 Sep 2010, 7:15 AM
  4. Img resize according to the screen width
    By dynobhooms in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 2 Nov 2009, 10:26 PM
  5. How to set TextArea heigth(and width) in GridEditor?
    By leezhou in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 29 Dec 2008, 9:50 AM

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar