Skip to content

Commit

Permalink
Merge pull request #935 from liferay/issues/issue_853
Browse files Browse the repository at this point in the history
Fixes #853 | Updates toolbar position when changing image alignment
  • Loading branch information
jbalsas authored Dec 4, 2018
2 parents 5d9b480 + fc8be1a commit 2949f3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/react/src/selections/selection-position.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@
* @return {Boolean} True, in all cases
*/
var imageSelectionSetPosition = function(payload) {
if (payload.selectionData && payload.selectionData.element) {
centerToolbar(this, payload.selectionData.element.getClientRect());
var selectionData = payload.selectionData ? payload.selectionData : payload.editorEvent ?
payload.editorEvent.data.selectionData : null;

if (selectionData && selectionData.element) {
centerToolbar(this, selectionData.element.getClientRect());

return true;
}
Expand Down

0 comments on commit 2949f3e

Please sign in to comment.