facebook

Retrieve device and control size and position: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #335693 Reply

    lemorlenny
    Member

    I would like to know if is possible to retrieve the resolution of device running and the size and coordinates of the controls placed in so to place they in a my arbitrary position related to the device size.
    f.e.
    $(‘#m1-u2-push1’).attr(‘width’);
    $(‘#m1-u2-push1’).attr(‘top’);

    Thanks in advance

    Lenny

    #335698

    Brandon
    Member

    Use the css property:

    
    var myWidth = $('#m1-u2-push1').css('width');
    alert("My Width = " + myWidth);
    
    #335722

    lemorlenny
    Member

    @CincyPlanet wrote:

    Use the css property:

    
    var myWidth = $('#m1-u2-push1').css('width');
    alert("My Width = " + myWidth);
    

    Many thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Retrieve device and control size and position: CLOSED

You must be logged in to post in the forum log in