Detect iPad to force screen resolution to select landscape display,

Description

When using an iPad to connect to OpenVPMS, Safari reports the display resolution as 768x1024 if the browser is started in portrait mode.
OpenVPMS calculates dialog sizes using 768 as the screen width - if the iPad is rotated to landscape, the dialogs will retain the portrait mode sizing.
OpenVPMS should always base iPad resolutions on the landscape resolution.

Environment

None

Activity

Tim Anderson May 14, 2012 at 12:50 AM

Safari on the iPad 2 and iPad 3 reports its resolution as 768x1024, regardless of the iPad's orientation (or retina display).
Improved support by adding a default-768x1024.properties file.
This assigns width properties a percentage of the screen height, and height properties a percentage of the screen width.
This required a removal of the code added as part of which prevented dialogs from exceeding a percentage of screen width and height.

Changes applied to vpms, revision 4663

Fixed

Details

Assignee

Reporter

Original estimate

Time tracking

4h logged

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created March 27, 2012 at 3:08 PM
Updated October 31, 2012 at 5:02 PM
Resolved May 14, 2012 at 12:50 AM
Who's Looking?