[TIMOB-2475] Android: Platform - displayCaps.platformHeight is undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-23T13:21:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | module_platform, qe-testadded |
Reporter | Ian Hawes |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:20:46.000+0000 |
Updated | 2012-01-23T13:21:30.000+0000 |
Description
var scrollHeight = Titanium.Platform.displayCaps.platformHeight - 110;
Crashes and gives an "undefined" error.
Update: FIXED
Comments
- StinkyPickle 2011-04-15
Mind telling us how you fixed this? I'm having the same problem...
- StinkyPickle 2011-04-15
Oh, I think I've sorted it. I just needed to do a full rebuild by touching the tiapp.xml file.
- daniyal 2011-04-15
I, too, get the same Run-time error which said:
"Cannot read property from displayCaps from undefined"
Forcing a full rebuild by editing tiapp.xml file solved the problem as mentioned by StinkyPickle, but this issue needs to be solved perhaps?
- Stephen Tramer 2011-04-15
Assigning to Don for triage.
- Goss Nuzzo-Jones (Zipcar) 2011-04-18 This is occurring quite frequently for me, I'm not sure I understand the workaround.
- Paul Dowsett 2012-01-06
Note the case, ie
displayCaps
rather thanDisplayCaps
- Paul Dowsett 2012-01-06 Correction - on Android 1.8.0.1 both work - on iOS, case matters.
- Paul Dowsett 2012-01-19
As per the user's update in the description, this was fixed. For anyone experiencing this, please verify that you are using
displayCaps
rather thanDisplayCaps
. - Natalie Huynh 2012-01-19 Tested with 1.9.0.v20120117114633 on Droid 3 2.3.4
- Wilson Luu 2012-01-23 Updating tags