Skip to content

Commit

Permalink
chore(Overlay): add default value for offset
Browse files Browse the repository at this point in the history
  • Loading branch information
tao1991123 committed Nov 29, 2018
1 parent d56bcbf commit a7678ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overlay/utils/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class Position {
elementRect.top >= 0 && elementRect.top + element.offsetHeight <= viewportSize.height);
}
// 在这里做RTL判断 top-left 定位转化为等效的 top-right定位
_setPinElementPostion(pinElement, postion, offset) {
_setPinElementPostion(pinElement, postion, offset = [0, 0]) {
const {top, left} = postion;
if (!this.isRtl) {
dom.setStyle(pinElement, {
Expand Down

0 comments on commit a7678ef

Please sign in to comment.