Index: ui/keyboard/resources/main.js |
diff --git a/ui/keyboard/resources/main.js b/ui/keyboard/resources/main.js |
index 69975f6c95bf3bad0db0dc8c1f0839367990c50e..4dba0d9375bbac4a14f81ec16739c79016ec97ab 100644 |
--- a/ui/keyboard/resources/main.js |
+++ b/ui/keyboard/resources/main.js |
@@ -53,6 +53,15 @@ 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; |
+ } |
+ } |
return importedContent; |
} |