incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Rozier (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Created: (ADFFACES-130) Avoid Hardcoding Height and Width Capabilities
Date Tue, 15 Aug 2006 15:29:45 GMT
Avoid Hardcoding Height and Width Capabilities
----------------------------------------------

                 Key: ADFFACES-130
                 URL: http://issues.apache.org/jira/browse/ADFFACES-130
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
            Reporter: Joseph Rozier
            Priority: Minor


The height and width capabilities of some agents are hard-coded in the agents' capabilities
xml files (located in trinidad-impl\src\main\resources\META-INF\agent).

In general, we should not hard code the height and width in this manner, particularly for
agents that may have different heights/widths.  For example, currently Pocket IE 2003 is listed
as having a height of 255 and a width of 229.  This is very specific to a device with a screen
resolution of 320x240 with Pocket IE running with the default toolbars and in portrait orientation.
 Because all of these are now variable (e.g. the device could be 240x240, the user could be
running in landscape mode or fullscreen, etc), these numbers are fairly meaningless.

Instead, we should either rely on information provided in the request or not set these capabilities
at all.  How these values are obtained will be agent specific.

For Pocket IE and IE Mobile, this information is available in the UA-pixels header.  Note
that (a) the header shows the available pixels, not necessarily the current size of the window
and (b) the agent may update this value as orientation changes (e.g. on a device in which
the user can switch from portrait to landscape).

For reference, see:
http://blogs.msdn.com/iemobile/archive/2006/08/03/Detecting_IE_Mobile.aspx
http://www.watersprings.org/pub/id/draft-mutz-http-attributes-00.txt

App Developers should not rely on the height/width being present and, if it is present, should
treat it as a hint.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message