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 9fdba2f commit 33da8e7Copy full SHA for 33da8e7
src/ui-canvaslabel/canvaslabel.common.ts
@@ -252,7 +252,6 @@ export abstract class SpanBase extends Shape {
252
253
static mBackgroundPaint: Paint;
254
255
- @profile
256
drawOnCanvas(canvas: Canvas, parent: CanvasLabel) {
257
let text = this.getText(parent);
258
if (!text) {
@@ -596,11 +595,12 @@ export abstract class CanvasLabel extends CanvasView {
596
595
super.addChild(child);
597
}
598
599
- public insertChild(child: View, atIndex: number): void {
+ public insertChild(child: View, atIndex: number) {
600
if (!(child instanceof View)) {
601
this.insertShape(child, atIndex);
+ return true;
602
} else {
603
- super.insertChild(child, atIndex);
+ return super.insertChild(child, atIndex);
604
605
606
0 commit comments