Skip to content
Snippets Groups Projects
Commit d5168df8 authored by chris's avatar chris Committed by john
Browse files

get childen of element instead of making selection by className

parent 313c5c3d
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ class MiniEditor extends ProseEditor { ...@@ -18,7 +18,7 @@ class MiniEditor extends ProseEditor {
// TEMP // TEMP
// const commentsPane = $$('ul').addClass('sc-comment-pane-list').addClass('sc-comments-pane').append('notes Editor Comments') // const commentsPane = $$('ul').addClass('sc-comment-pane-list').addClass('sc-comments-pane').append('notes Editor Comments')
console.log($$(Comments))
var commentsPane = $$(Comments, { var commentsPane = $$(Comments, {
// TODO -- should probably remove the || {} // TODO -- should probably remove the || {}
// comments: this.props.fragment.comments || {}, // comments: this.props.fragment.comments || {},
......
...@@ -24,8 +24,8 @@ class Notes extends Component { ...@@ -24,8 +24,8 @@ class Notes extends Component {
resize (e) { resize (e) {
const height = (this.el.el.offsetHeight + this.el.el.offsetTop - e.clientY) const height = (this.el.el.offsetHeight + this.el.el.offsetTop - e.clientY)
const scrollPane = document.getElementsByClassName('se-scrollable') const scrollPane = document.getElementById('mini-editor-content-panel').children
scrollPane[1].style.minHeight = height - 40 + 'px' scrollPane[0].style.minHeight = height - 40 + 'px'
this.el.el.style.height = height + 'px' this.el.el.style.height = height + 'px'
} }
......
...@@ -12,6 +12,7 @@ $white: #fff; ...@@ -12,6 +12,7 @@ $white: #fff;
z-index: 0; z-index: 0;
.resize-area { .resize-area {
padding-top: 40px;
background-color: red; background-color: red;
cursor: row-resize; cursor: row-resize;
height: 5px; height: 5px;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment