Closed loadchief closed 7 years ago
iOS layouts sometimes require height and width. If you have no errors and it's just not rendering that's the first thing to try. Set a static height/width and let me know. Thanks
On Tue, Jun 13, 2017, 1:50 PM Loadchief notifications@github.com wrote:
Hi, I am able to use drawing pad successfully on android but nothing appears on the drawing pad surface on ios. I do not get any errors and I am able to successfully dump the drawingpad object in the console. Any suggestions? I am using angular/typescript TNS version 2.5.2
`
`
`export class PodSignatureComponent implements OnInit {
public showProgress: boolean; public progressValue: number; private sub: any; public jobId: any; public jobStatus: any;
public pad: any; @ViewChild("drawingPad") DrawingPad: ElementRef;
public constructor( private http: Http, private route: ActivatedRoute, private router: Router, private location: Location, private api: LoadchiefAPI, private headerService: HeaderService) {}
public ngOnInit() {
this.sub = this.route.params.subscribe(params => { this.jobId = +params['jobId']; }); this.jobStatus = 'Picked Up'; this.headerService.sendMessage('POD Signature');
}
public ngAfterViewInit() { this.pad = this.DrawingPad.nativeElement; console.dump(this.pad); }`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bradmartin/nativescript-drawingpad/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/AFulhIC0_0jmVKi9nGQsLHp5bi9NZ0Ocks5sDtnggaJpZM4N463O .
I created a css class with a height and width property and applied that class to the stack layout that houses the DrawingPad element but still no response when you draw. I also removed the other two classes on that stack layout just in case they were interfering.
what about on the DrawingPad
itself? nothing rendering? can you upload screens?
Thank you Brad. Yes, applying a fixed width and height directly to the DrawingPad element allows it to work / render actual drawings.
Hi, I am able to use drawing pad successfully on android but nothing appears on the drawing pad surface on ios. I do not get any errors and I am able to successfully dump the drawingpad object in the console. Any suggestions? I am using angular/typescript TNS version 2.5.2
`
`
`export class PodSignatureComponent implements OnInit {