×

Consistent Scaling of Web-Based Content Across Devices Having Different Screen Metrics

  • US 20140325345A1
  • Filed: 04/26/2013
  • Published: 10/30/2014
  • Est. Priority Date: 04/26/2013
  • Status: Abandoned Application
First Claim
Patent Images

1. A method for scaling web content, the method comprising performing, by a computing device, operations for:

  • receiving web content for presentation, via a hybrid application executing on the computing device, on a screen component of the computing device, the web content comprising markup language code and style sheet code;

    polling a rendering engine for screen metrics of a screen component of the computing device;

    determining whether the screen metrics from the rendering engine are consistent;

    in response to determining the screen metrics from the rendering engine are consistent, calculating an average of the screen metrics;

    determining a generalized screen size for the screen component of the computing device based upon the average of the screen metrics;

    selecting a scaling factor for the generalized screen size;

    calculating a value based upon the scaling factor and the average of the screen metrics;

    applying the value to a font size property of a root document object model (“

    DOM”

    ) node of the web content; and

    scaling the web content based upon the value of the font size property and rem units defined in the style sheet code.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×