Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15582] Nexus 7 navigation bar causes changes in device height, width on orientation change

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsAndroid
LabelsNexus-7, Platform-height, Platform-width, Titanium3.1.3
ReporterVatsal Parekh
AssigneeUnknown
Created2013-10-25T09:33:08.000+0000
Updated2018-02-28T20:03:17.000+0000

Description

Nexus 7 has 7" screen with 1280x800 , 216 ppi resolution. See "Technical specifications" section at following official Google Nexus 7 website https://play.google.com/store/devices/details?id=nexus_7_16gb&feature=device-featured#?t=W251bGwsMSwxLDIwMiwibnVsbC13ZWJfaG9tZV81MDAwMDA1X25leHVzSU5fZGV2aWNlc19JTl9fNTAwMDAwNV9uZXh1c0lOXzFfcHJvbW9fMTM2NzYyNDkxOTkzMSJd While using Tatanium SDK, when I change orientation, navigation bar and status bar height varies. Which causes change in following properties In portrait orientation Ti.Platform.displayCaps.platformWidth = 800 Ti.Platform.displayCaps.platformHeight = 1205 In landscape orientation Ti.Platform.displayCaps.platformWidth = 1280 Ti.Platform.displayCaps.platformHeight = 736 Actually it should only interchange height and width when orientation changes. I am using these properties to decide the diagonal screen size of every device on which my app runs. Most of all Android and iOS devices works fine but only Nexus 7 has above mentioned problem. Method to reproduce the bug : Source code : Create new app in Titanium SDK 3.1.3 and put following lines in app.js. Ti.API.info('Ti.Platform.displayCaps.platformWidth : '+Ti.Platform.displayCaps.platformWidth); Ti.API.info('Ti.Platform.displayCaps.platformHeight : '+Ti.Platform.displayCaps.platformHeight); Now, run this app on Nexus 7 portrait mode and note the log. After that change orientation, run this app again on Nexus 7 and note the log.

Comments

  1. Rainer Schleevoigt 2015-07-02

    I see the same issue. Furtherhin I'm looking for a possibility to hide the NEXUS navigation bar. Is it a theme problem?
  2. Ricardo Ramirez 2015-10-22

JSON Source