Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: ui/keyboard/resources/main.js

Issue 140123002: Work around for content select not supporting touch events on it's children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uses children. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/elements/kb-keyset.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/main.js
diff --git a/ui/keyboard/resources/main.js b/ui/keyboard/resources/main.js
index 69975f6c95bf3bad0db0dc8c1f0839367990c50e..db46cb3527bcd790164cd2aba136be52dda432ae 100644
--- a/ui/keyboard/resources/main.js
+++ b/ui/keyboard/resources/main.js
@@ -53,6 +53,16 @@ function expandHTML(importedContent) {
function flattenKeysets(content) {
var importedContent = importHTML(content);
expandHTML(importedContent);
+ var rows = importedContent.querySelectorAll('kb-row');
+ for (var i = 0 ; i < rows.length; i++) {
+ var allKeys = rows[i].children;
+ for (var j = 0; j< allKeys.length; j++) {
+ var weight = allKeys[j].getAttribute('weight');
+ if (weight) {
+ allKeys[j].style.webkitBoxFlex = weight;
+ }
kevers 2014/01/17 18:50:30 nit: Remove brackets.
rsadam 2014/01/17 19:12:33 Done.
+ }
+ }
return importedContent;
}
« no previous file with comments | « ui/keyboard/resources/elements/kb-keyset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698