Skip to content

Commit

Permalink
add an array input page and update the treeview page sizing (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellthompson authored Dec 23, 2020
1 parent be70c31 commit 135068e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/create-component-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var components = [
['layout', 'divider'],
['layout', 'overlay'],
['layout', 'panel'],
['layout', 'tree-view'],
['misc', 'progress'],
['misc', 'spinner'],
['input', 'context-menu']
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/4-components/ArrayInput.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: page
title: ArrayInput
permalink: /components/array-input/
parent: Components
---
<iframe src="/pcui/storybook/iframe.html?id=input-arrayinput--string&viewMode=docs" style="height: 100% !important;" class="component-iframe" onload="resize()"></iframe>

<script>
function resize() {
var iframe = document.querySelector('.component-iframe');
iframe.setAttribute('style', 'height: ' + iframe.contentDocument.body.offsetHeight + 'px !important; opacity: 1;');
iframe.contentDocument.querySelector('.sbdocs-wrapper').setAttribute('style', 'padding-top: 20px;');
}
</script>
2 changes: 1 addition & 1 deletion docs/pages/4-components/TreeView.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parent: Components
<script>
function resize() {
var iframe = document.querySelector('.component-iframe');
iframe.setAttribute('style', 'height: ' + iframe.contentDocument.body.offsetHeight + 'px !important; opacity: 1;');
iframe.setAttribute('style', 'height: ' + (iframe.contentDocument.body.offsetHeight + 100) + 'px !important; opacity: 1;');
iframe.contentDocument.querySelector('.sbdocs-wrapper').setAttribute('style', 'padding-top: 20px;');
}
</script>

0 comments on commit 135068e

Please sign in to comment.