Skip to content

Commit

Permalink
Merge pull request jdorn#719 from germanbisurgi/master
Browse files Browse the repository at this point in the history
fix for jdorn#662 and jdorn#718
  • Loading branch information
schmunk42 authored Apr 17, 2020
2 parents 3b001ad + 4bd87a4 commit 4909698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/editors/colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { extend } from '../utilities.js'

export class ColorEditor extends StringEditor {
postBuild () {
if (window.Picker) this.input.type = 'text'
if (window.Picker) {
this.input.type = 'text'
}
this.input.style.padding = '3px'
}

setValue (value, initial, fromTemplate) {
Expand Down
3 changes: 2 additions & 1 deletion src/editors/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,12 @@ export class ObjectEditor extends AbstractEditor {
this.header.textContent = this.getTitle()
}
this.title = this.theme.getHeader(this.header)
this.title.style.display = 'inline-block'
this.controls = this.theme.getButtonHolder()
this.controls.style.margin = '0 0 0 10px'

this.container.appendChild(this.title)
this.title.appendChild(this.controls)
this.container.appendChild(this.controls)
this.container.style.position = 'relative'

/* Edit JSON modal */
Expand Down

0 comments on commit 4909698

Please sign in to comment.