Display problems for Javascript modal dialogs on Android were caused by using setMessage in the AlertDialog.Builder, while at the same time setting the AlertDialog layout inside a ScrollView element. Removed setMessage and made the modal dialog layout a linear one, containing a scroll view for the text, followed by the edit text field and the checkbox.

ScrollView has heigh of 0dp and weight of 1 so that the ScrollView can expand exactly as much as necessary in order to wrap the TextView content and not fill the whole AlertDialog. For more information regarding this layout choice see the Layout Weight paragraph from: http://developer.android.com/guide/topics/ui/layout/linear.html/

Fix for BUG=313232

Review URL: https://codereview.chromium.org/65163002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238006 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 238006