summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Chaturvedi <rkc@chromium.org>2014-09-30 13:40:17 -0400
committerRahul Chaturvedi <rkc@chromium.org>2014-09-30 17:41:04 +0000
commit70340f254d2a782884be7a641f6959f215d5ed12 (patch)
treed4e7960692da8812fe5156323f9f0cd40ac5bc11
parenteebfc06d8d49295104b4ec66bde153346913a99e (diff)
downloadchromium_src-70340f254d2a782884be7a641f6959f215d5ed12.zip
chromium_src-70340f254d2a782884be7a641f6959f215d5ed12.tar.gz
chromium_src-70340f254d2a782884be7a641f6959f215d5ed12.tar.bz2
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}
-rw-r--r--chrome/browser/resources/feedback/css/feedback.css1
-rw-r--r--chrome/browser/resources/feedback/js/feedback.js2
2 files changed, 3 insertions, 0 deletions
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();
});
}
});