|
|
@@ -234,7 +234,7 @@ export default class BalloonPanelView extends View {
|
|
|
fitInViewport: true
|
|
|
}, options );
|
|
|
|
|
|
- const { top, left, name: position } = getOptimalPosition( positionOptions );
|
|
|
+ const { top, left, name: position } = BalloonPanelView._getOptimalPosition( positionOptions );
|
|
|
|
|
|
Object.assign( this, { top, left, position } );
|
|
|
}
|
|
|
@@ -416,6 +416,14 @@ BalloonPanelView.arrowHorizontalOffset = 25;
|
|
|
BalloonPanelView.arrowVerticalOffset = 10;
|
|
|
|
|
|
/**
|
|
|
+ * Function used to calculate the optimal position for the balloon.
|
|
|
+ *
|
|
|
+ * @protected
|
|
|
+ * @member {Function} module:ui/panel/balloon/balloonpanelview~BalloonPanelView._getOptimalPosition
|
|
|
+ */
|
|
|
+BalloonPanelView._getOptimalPosition = getOptimalPosition;
|
|
|
+
|
|
|
+/**
|
|
|
* A default set of positioning functions used by the balloon panel view
|
|
|
* when attaching using {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo} method.
|
|
|
*
|