Unverified Commit 0f9f7678 authored by niko's avatar niko Committed by GitHub

fix Ellipsis floor-mid to ceil-mid #1258 (#1680)

parent 5c2dd01e
...@@ -109,7 +109,7 @@ export default class Ellipsis extends Component { ...@@ -109,7 +109,7 @@ export default class Ellipsis extends Component {
// bisection // bisection
const len = text.length; const len = text.length;
const mid = Math.floor(len / 2); const mid = Math.ceil(len / 2);
const count = this.bisection(targetHeight, mid, 0, len, text, shadowNode); const count = this.bisection(targetHeight, mid, 0, len, text, shadowNode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment