Skip to content

Commit

Permalink
fix(tooltip): 修复scale拼写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Jul 2, 2018
1 parent 22ef7a9 commit a62e52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Tooltip extends Component<ITooltipProps, ITooltipState> {
refChildren: HTMLElement;
timeoutHandle: number;

sacle = 0.8;
scale = 0.8;

static defaultProps = {
placement: 'top',
Expand All @@ -83,8 +83,8 @@ export class Tooltip extends Component<ITooltipProps, ITooltipState> {
};

setPopRect = (rect: {width: number; height: number}): {width: number; height: number} => {
const width = rect.width / this.sacle;
const height = rect.height / this.sacle;
const width = rect.width / this.scale;
const height = rect.height / this.scale;
return {width, height};
}

Expand Down

0 comments on commit a62e52e

Please sign in to comment.