Skip to content

Commit

Permalink
Smaller fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cvasseng committed Jan 24, 2017
1 parent 02f6af3 commit 245dd18
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
1 change: 1 addition & 0 deletions less/toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
.highed-toolbar-button {
margin-right:10px;
display: inline-block;
cursor:pointer !important;
}
79 changes: 40 additions & 39 deletions src/editors/highed.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,58 +315,59 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
});

//Attach to parent node
parent = highed.dom.get(parent);
if (parent) {
highed.dom.ap(parent,
highed.dom.ap(container,
expandContainer
)
);
highed.ready(function () {
parent = highed.dom.get(parent);
if (parent) {
highed.dom.ap(parent,
highed.dom.ap(container,
expandContainer
)
);

highed.dom.ap(splitter.right,
chartContainer
);
highed.dom.ap(splitter.right,
chartContainer
);

highed.dom.style(splitter.right, {
// overflow: 'hidden'
});
highed.dom.style(splitter.right, {
// overflow: 'hidden'
});

doneStep.body.className += ' highed-done-pane';
doneStep.body.className += ' highed-done-pane';

highed.dom.ap(doneStep.body,
highed.dom.cr('div', '', [
'<h2>All done? Great!</h2>',
'Click the button below to close the editor'
].join('<br/>')),
doneBtn
);
highed.dom.ap(doneStep.body,
highed.dom.cr('div', '', [
'<h2>All done? Great!</h2>',
'Click the button below to close the editor'
].join('<br/>')),
doneBtn
);

highed.dom.ap(mainToolbar.left,
highed.dom.style(highed.dom.cr('div', 'highed-logo'), {
highed.dom.ap(mainToolbar.left,
highed.dom.style(highed.dom.cr('div', 'highed-logo'), {
'background-image': 'url("data:image/svg+xml;utf8,' +
encodeURIComponent(highed.resources.logo) +
'")'
}
)
);
})
);

resize();

if (!highed.onPhone()) {
highed.dom.on(window, 'resize', resize);
}
} else {
highed.log(1, 'no valid parent supplied to editor');
}
if (!highed.onPhone()) {
highed.dom.on(window, 'resize', resize);
}
} else {
highed.log(1, 'no valid parent supplied to editor');
}

highed.dom.style(welcomeStep.body, {padding: '0 20px'});
highed.dom.style(welcomeStep.body, {padding: '0 20px'});

highed.dom.ap(welcomeStep.body,
highed.dom.cr('h2', '', 'Welcome'),
highed.dom.cr('div', '', 'This wizard will take you through the process of creating your very own chart.'),
highed.dom.cr('br'),
highed.dom.cr('div', '', 'Follow the steps below to get started!')
);
highed.dom.ap(welcomeStep.body,
highed.dom.cr('h2', '', 'Welcome'),
highed.dom.cr('div', '', 'This wizard will take you through the process of creating your very own chart.'),
highed.dom.cr('br'),
highed.dom.cr('div', '', 'Follow the steps below to get started!')
);
});

////////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 245dd18

Please sign in to comment.