Skip to content

Commit

Permalink
bugfix nested
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Feb 6, 2019
1 parent a22edd2 commit 173cdf2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions demo/nested_bug_pr133.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>LineUp Builder Test</title>

<link href="./LineUpJS.css" rel="stylesheet">
<link href="./demo.css" rel="stylesheet">
</head>
<body>
<script src="./LineUpJS.js"></script>
<script src="./helper/testRules.js"></script>

<script>
window.onload = function () {
const arr = [];
const l = new Array(10).fill(0);
const cats = ['c1', 'c2', 'c3'];
for (let i = 0; i < 100; ++i) {
arr.push({
a: Math.random() * 10,
as: l.map((d) => Math.random() * 10),
bs: l.map((d) => Math.random() * 10),
cs: l.map((d) => Math.random() * 10)
})
}
const builder = LineUpJS.builder(arr);
builder.deriveColumns();
// and two rankings
const ranking = LineUpJS.buildRanking()
.supportTypes()
.nested('multi canvas', 'a', 'as', 'bs', 'cs')

builder
.ranking(ranking);


builder.buildTaggle(document.body);
};
</script>

</body>
</html>
1 change: 1 addition & 0 deletions src/styles/renderer/_stack.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../vars';

.#{$lu_css_prefix}-stack-sub {
position: relative;
height: 100%;
}

0 comments on commit 173cdf2

Please sign in to comment.