浏览代码

Enabled additional positions for the image toolbar to fit into viewport when the image is narrow and close to the edge of the screen.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
00678d5d35
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      packages/ckeditor5-image/src/image/ui/utils.js

+ 5 - 1
packages/ckeditor5-image/src/image/ui/utils.js

@@ -43,7 +43,11 @@ export function getBalloonPositionData( editor ) {
 		target: editingView.domConverter.viewToDom( editingView.selection.getSelectedElement() ),
 		positions: [
 			defaultPositions.northArrowSouth,
-			defaultPositions.southArrowNorth
+			defaultPositions.northArrowSouthWest,
+			defaultPositions.northArrowSouthEast,
+			defaultPositions.southArrowNorth,
+			defaultPositions.southArrowNorthWest,
+			defaultPositions.southArrowNorthEast
 		]
 	};
 }