×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    8

    Local Simulator does not return the correct screen size

    The local simulator returns the screen size of my system and not the device. Expecting 240 getting 1920

    So conditional css statements do not work @media only screen and (max-device-width: 240px) { }

    Cheers
    Rylan

  2. #2
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Local Simulator does not return the correct screen size

    Hi,

    Unfortunately CSS media queries are not supported in web apps.
    Local preview will handle those, as it is essentially a full-fledged WebKit browser meant for debugging, but they are dropped in cloud preview / actual device.

    Br,
    Ilkka

Similar Threads

  1. Possible bug in the local preview simulator: screen.height
    By igordsm in forum Nokia Asha Web Apps
    Replies: 2
    Last Post: 2012-07-18, 01:18
  2. Issue Camera with width screen size bigger than height screen size
    By langtu_yka in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-11-16, 08:56
  3. 9500 does not return correct timezone
    By hasnulfadhly in forum Mobile Java General
    Replies: 0
    Last Post: 2005-07-05, 03:18
  4. The correct meaning of MAX JAR size
    By bigrio in forum Mobile Java General
    Replies: 0
    Last Post: 2004-11-13, 11:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •