1. #1
    Ext User
    Join Date
    Sep 2007
    Posts
    55
    Vote Rating
    0
    gimler is on a distinguished road

      0  

    Default faster way to get dpi from client

    faster way to get dpi from client


    i won

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Code:
    if (Ext.isIE) {
        dpi = screen.deviceXDPI;
    } else {
        var t = Ext.getBody().createChild({style:{width:'2.54cm'}},null,true);
        dpi = t.offsetWidth;
        Ext.removeNode(t);
    }

  3. #3
    Ext User
    Join Date
    Sep 2007
    Posts
    55
    Vote Rating
    0
    gimler is on a distinguished road

      0  

    Default


    thanks for the fast answer

  4. #4
    Sencha User
    Join Date
    Feb 2014
    Posts
    1
    Vote Rating
    0
    hardeepvicky1 is on a distinguished road

      0  

    Default Nonsense

    Nonsense


    This is not working

Thread Participants: 2