From 70340f254d2a782884be7a641f6959f215d5ed12 Mon Sep 17 00:00:00 2001 From: Rahul Chaturvedi Date: Tue, 30 Sep 2014 13:40:17 -0400 Subject: Various Feedback fixes. This CL fixes two issues. . It brings up a scroll bar if the text in the feedback window doesn't fit in the space available on screen (this happens when the user sets the page zoom too 120% or above) . Sets the focus to the description field when the feedback app starts. TBR=rkc@chromium.org BUG=295999,330139 Review URL: https://codereview.chromium.org/511393002 Cr-Commit-Position: refs/heads/master@{#292530} (cherry picked from commit 8b02d82fc496c87bba7607ad3f903ff573c73e38) Review URL: https://codereview.chromium.org/614133003 Cr-Commit-Position: refs/branch-heads/2125@{#532} Cr-Branched-From: b68026d94bda36dd106a3d91a098719f952a9477-refs/heads/master@{#290040} --- chrome/browser/resources/feedback/css/feedback.css | 1 + chrome/browser/resources/feedback/js/feedback.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/chrome/browser/resources/feedback/css/feedback.css b/chrome/browser/resources/feedback/css/feedback.css index 4542531..addbff7 100644 --- a/chrome/browser/resources/feedback/css/feedback.css +++ b/chrome/browser/resources/feedback/css/feedback.css @@ -11,6 +11,7 @@ body { background-color: #fbfbfb; height: 100%; margin: 0; + overflow: auto; padding: 0; width: 100%; } diff --git a/chrome/browser/resources/feedback/js/feedback.js b/chrome/browser/resources/feedback/js/feedback.js index 55933f5..d8aef05 100644 --- a/chrome/browser/resources/feedback/js/feedback.js +++ b/chrome/browser/resources/feedback/js/feedback.js @@ -315,6 +315,8 @@ function initialize() { $('histograms-url').onclick = windowOpener(STATS_WINDOW_ID, 'chrome://histograms'); } + // Make sure our focus starts on the description field. + $('description-text').focus(); }); } }); -- cgit v1.1