PDA

View Full Version : [OPEN-437] Ext.is function against Desktop and iphone



gabrielstuff
15 Oct 2010, 1:20 AM
Hello,

I notice a difference between the versions (0.93)/(0.96) : the way we know if we are on a iphone or on a computer, namely Ext.plateform.isIphone (0.93) and Ext.isIphone (0.96)
With 0.96, if we try to use the iPhone useragent of Safari, the function isIphone tell FALSE.
With 0.93, it works properly.
tested with safari 5.02 and Sencha 0.96 and 0.97 on a Mac.
Sencha Touch version tested:

0.96
0.97



only default ext-all.css

Platform tested against:

iOS 3.x
iOS 4

Description:

Ext.is does not give the right plateform

Test Case:

Ext.is.Desktop Steps to reproduce the problem:

Run any examples
type in the console Ext.is.Desktop
you get true
Turn on the useragent in Safari to iPhone iOS4
type in the console Ext.is.Desktop
you get true

The result that was expected:

First get true
Then get false


The result that occurs instead:

True
True

The main problem is that you have to add your self x-phone x-iphone CSS class to the body manualy. And so see that the CSS, is kind of weird...

BrendanC
15 Oct 2010, 10:03 AM
Thanks for the report. The team is reviewing your suggestion and they will let you know what they decide.