Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixed API docs and minor code style issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Feb 24, 2017
1 parent 4535809 commit 8e8b36b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions src/image/ui/imageballoonpanelview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,26 @@ const positions = {
// +-----------------+
// | Balloon |
// +-----------------+
south: ( targetRect, balloonRect ) => ( {
top: targetRect.bottom + arrowVOffset,
left: targetRect.left + targetRect.width / 2 - balloonRect.width / 2,
name: 's'
} ),
south( targetRect, balloonRect ) {
return {
top: targetRect.bottom + arrowVOffset,
left: targetRect.left + targetRect.width / 2 - balloonRect.width / 2,
name: 's'
};
},

// +-----------------+
// | Balloon |
// +-----------------+
// V
// [text range]
north: ( targetRect, balloonRect ) => ( {
top: targetRect.top - balloonRect.height - arrowVOffset,
left: targetRect.left + targetRect.width / 2 - balloonRect.width / 2,
name: 'n'
} )
north( targetRect, balloonRect ) {
return {
top: targetRect.top - balloonRect.height - arrowVOffset,
left: targetRect.left + targetRect.width / 2 - balloonRect.width / 2,
name: 'n'
};
}
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/imagetextalternative.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class ImageTextAlternative extends Plugin {
* Creates balloon panel.
*
* @private
* @return {Promise.<module:image/ui/imageballoonpanel~ImageBalloonPanelView>}
* @return {Promise.<module:image/image/ui/imageballoonpanel~ImageBalloonPanelView>}
*/
_createBalloonPanel() {
const editor = this.editor;
Expand Down

0 comments on commit 8e8b36b

Please sign in to comment.