2015-12-17 Ryosuke Niwa <rniwa@webkit.org>
+ Dashboard charts should have uniform widths on v3 UI
+ https://bugs.webkit.org/show_bug.cgi?id=152395
+
+ Reviewed by Chris Dumez.
+
+ Fix the bug by applying table-layout: fixed on the dashboard table.
+
+ * public/v3/pages/dashboard-page.js:
+ (DashboardPage.prototype.render): Added header-column as a class name to explicitly set the header column with.
+ (DashboardPage.cssTemplate): Adjusted CSS accordingly.
+
+2015-12-17 Ryosuke Niwa <rniwa@webkit.org>
+
Closing a pane on v3 UI always closes the last pane
https://bugs.webkit.org/show_bug.cgi?id=152388
var tree = [];
for (var group of this._tableGroups) {
tree.push(element('thead', element('tr',
- group[0].map(function (cell) { return element('td', cell.content || cell); }))));
+ group[0].map(function (cell, cellIndex) {
+ if (!cellIndex)
+ return element('th', {class: 'heading-column'});
+ return element('td', cell.content || cell);
+ }))));
tree.push(element('tbody', group.slice(1).map(function (row) {
return element('tr', row.map(function (cell, cellIndex) {
static cssTemplate()
{
return `
+ .dashboard-table {
+ table-layout: fixed;
+ }
.dashboard-table td,
.dashboard-table th {
border: none;
width: 2rem;
position: relative;
}
+ .dashboard-table .heading-column {
+ width: 2rem;
+ height: 1rem;
+ }
.dashboard-table th .vertical-label {
position: absolute;
left: 0;