Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
00678d5d35
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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
 		]
 	};
 }