We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd1b7e commit 3961716Copy full SHA for 3961716
src/ui-canvas/canvas.ios.ts
@@ -2451,6 +2451,16 @@ export class StaticLayout {
2451
}
2452
return result;
2453
2454
+ getLineWidth(lineNumber: number) {
2455
+ // TODO: actually find line used width
2456
+ let result = this.getBounds().size.width;
2457
+ if (isNaN(result)) {
2458
+ result = this.width;
2459
+ } else {
2460
+ result = Math.min(result, this.width);
2461
+ }
2462
+ return result;
2463
2464
getHeight() {
2465
const result = this.getBounds().size.height;
2466
0 commit comments