OSDN Git Service

Don't scroll the title bar off screen while loading.
authorLeon Scroggins <scroggo@google.com>
Thu, 17 Sep 2009 18:19:49 +0000 (14:19 -0400)
committerLeon Scroggins <scroggo@google.com>
Thu, 17 Sep 2009 19:48:37 +0000 (15:48 -0400)
commitd55de40481c6ec7d8fbd1a38c80a6c66bf462a71
tree87b1dd4c5652cc0f5d835ebf06dcd89849858fc3
parent3239de8cd78b3fa292d85ee7658a9871cdfbc79b
Don't scroll the title bar off screen while loading.

Though the user can still manually scroll the title bar
off screen, we do not want it to happen automatically.
When we load a new page, its scroll position can be
set to (0,0).  Make sure that we simply set it to the
top without adding in the title bar's height.  Also,
prevent javascript which attempts to scroll the page
to (0,0) or (0,1) from removing the title bar.

Fixes http://b/issue?id=2113398 and http://b/issue?id=2123079

Change-Id: Ida64d8c94be6744c7b0b4d60af1c229b2cc83673
core/java/android/webkit/WebView.java