×

Method and device for relocating input box to target position in mobile terminal browser, storage medium

  • US 10,318,605 B2
  • Filed: 07/03/2014
  • Issued: 06/11/2019
  • Est. Priority Date: 04/03/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for relocating an input box to a target position in a mobile terminal browser, comprising:

  • calculating, when an input box in a browsed web page is clicked and an input method interface pops up, a position of the input box relative to the input method interface and determining whether the input box is partially or completely covered by the input method interface;

    designating a target position of the input box according to a position of the input method interface, when the input box is partially or completely covered by the input method interface; and

    rendering the input box at the target position by scrolling one or more content display containers, wherein a first content display container is the browsed web page, and a second content display container is a browsed canvas, the browsed canvas being a visible region displayed on the mobile terminal screen that renders the browsed web page, wherein each content display container is maintained with respective corresponding coordinates, and the browsed web page and the browsed canvas are both scrollable based on the respective corresponding coordinates;

    wherein rendering the input box at the target position further comprises;

    calculating a distance between a lower edge position of the browsed web page and a lower edge position of a mobile terminal screen as a first distance;

    calculating a distance between a lower edge position of the input box at the target position and the lower edge position of the input box at the current position as a second distance;

    determining, between the browsed web page and the browsed canvas, which content display container to be scrolled and a corresponding scrolling distance based on the first distance, the second distance, and the respective corresponding coordinates, including;

    determining whether the first distance equals to zero;

    in response to determining that the first distance is 0, automatically scrolling only the second content display container upward by the second distance;

    determining whether the first distance is less than the second distance;

    in response to determining that the first distance is larger than or equal to the second distance, automatically scrolling only the first content display container upward by the second distance; and

    in response to determining that the first distance is less than the second distance, calculating a difference between the second distance and the first distance as a third distance;

    automatically scrolling both the first content display container and the second content display container upward, wherein the browsed webpage is scrolled upward by the first distance, and the browsed canvas is scrolled upward by the third distance.

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