Skip to content

Commit

Permalink
udpate demo folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxbin committed Oct 9, 2019
1 parent a561f85 commit 95c30ca
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# compiled output
/dist
/demo/js
/demo/css
/demo/css/font-awesome.min.css
/demo/css/jquery.orgchart.css
/demo/fonts

# Coverage directory used by tools like istanbul
Expand Down
26 changes: 26 additions & 0 deletions demo/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
html,body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}

body {
font-family: Arial;
font-size: 14px;
line-height: 1.428571429;
color: #333333;
}

#chart-container {
position: relative;
display: inline-block;
top: 10px;
left: 10px;
height: 420px;
width: calc(100% - 24px);
border: 2px dashed #aaa;
border-radius: 5px;
overflow: auto;
text-align: center;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orgchart",
"version": "2.1.7",
"version": "2.1.8",
"description": "Simple and direct organization chart(tree-like hierarchy) plugin based on pure DOM and jQuery.",
"main": "./dist/js/jquery.orgchart.min.js",
"style": [
Expand Down
4 changes: 2 additions & 2 deletions src/js/jquery.orgchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1361,13 +1361,13 @@
if (docWidth > docHeight) {
doc = new jsPDF({
orientation: 'landscape',
unit: 'mm',
unit: 'px',
format: [docWidth, docHeight]
});
} else {
doc = new jsPDF({
orientation: 'portrait',
unit: 'mm',
unit: 'px',
format: [docHeight, docWidth]
});
}
Expand Down

0 comments on commit 95c30ca

Please sign in to comment.