Skip to content

Commit 1cf037e

Browse files
committed
very good single-column
1 parent cfbcb21 commit 1cf037e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/traces/table/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module.exports = function plot(gd, calcdata) {
139139

140140
// initial rendering: header is rendered first, as it may may have async LaTeX (show header first)
141141
// but blocks are _entered_ the way they are due to painter's algo (header on top)
142-
//renderColumnBlocks(gd, columnBlock.filter(headerBlock), columnBlock);
142+
renderColumnBlocks(gd, columnBlock.filter(headerBlock), columnBlock);
143143
renderColumnBlocks(gd, columnBlock.filter(cellsBlock), columnBlock);
144144

145145
var scrollAreaClip = tableControlView.selectAll('.scrollAreaClip')
@@ -394,7 +394,7 @@ function splitToPanels(d) {
394394
rowBlocks: d.calcdata.rowBlocks
395395
});
396396
// order due to SVG using painter's algo:
397-
return [revolverPanel1/*, revolverPanel2, headerPanel*/];
397+
return [revolverPanel1, revolverPanel2, headerPanel];
398398
}
399399

400400
function splitToCells(d) {

test/image/mocks/table_one_cell.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"layout": {
33
"width": 400,
4-
"height": 330 + 380 - 150,
4+
"height": 230 + 380 - 150,
55
"title": "Widget parameters and cost",
66
"margin": {"t": 0 || 280, "r": 60, "b": 54, "l": 60}
77
},
@@ -76,7 +76,7 @@
7676
"$\\begin{eqnarray*} 2*\\cos 2\\theta & = & \\cos^2 \\theta - \\sin^2 \\theta \\\\ & = & 2 \\cos^2 \\theta - 1. \\end{eqnarray*}$",
7777
"2A<sup><b>X</b></sup><br>B<br><a href=”https://plot.ly/”>Plotly</a><br>C<sub>D</sub>",
7878
"$\\begin{eqnarray*} 3*\\cos 2\\theta & = & \\cos^2 \\theta - \\sin^2 \\theta \\\\ & = & 2 \\cos^2 \\theta - 1. \\end{eqnarray*}$",
79-
"3A<sup><b>X</b></sup><br>B<br><a href=”https://plot.ly/”> Plotly</a><br>C<sub>D</sub>",
79+
"3A<sup><b>X</b></sup>B<a href=”https://plot.ly/”> Plotly</a>C<sub>D</sub>",
8080
"$\\begin{eqnarray*} 4*\\cos 2\\theta & = & \\cos^2 \\theta - \\sin^2 \\theta \\\\ & = & 2 \\cos^2 \\theta - 1. \\end{eqnarray*}$",
8181
"4A<sup><b>X</b></sup><br>B<br><a href=”https://plot.ly/”> Plotly</a><br>C<sub>D</sub>",
8282
"$\\begin{eqnarray*} 5*\\cos 2\\theta & = & \\cos^2 \\theta - \\sin^2 \\theta \\\\ & = & 2 \\cos^2 \\theta - 1. \\end{eqnarray*}$",
@@ -107,7 +107,7 @@
107107
"x8A<sup><b>X</b></sup><br>B<br><a href=”https://plot.ly/”> Plotly</a><br>C<sub>D</sub>",
108108
].map(function(d, i) {return d})
109109

110-
].map(function(a) {return [a[4]]}).slice(1, 2),
110+
].map(function(a) {return a}).slice(1, 2),
111111

112112
"format": [
113113
null
@@ -116,7 +116,7 @@
116116
//"prefix": ["#"],
117117
//"suffix": ["cell"],
118118

119-
"height": 40,
119+
"height": 20,
120120

121121
"align": ["right"],
122122
"valign": ["bottom"],

0 commit comments

Comments
 (0)