reset password
Author Message
BrianK
Posts: 25
Posted 20:30 Sep 30, 2016 |

To the person having trouble using RTextCell, you need to make sure you are drawing the RTextCell AFTER the code that creates the RTextCell.

Ex:

// Code that creates RTextCell

var restaurants = [];
restaurants.push([new RTextCell("Bucco de\nBeppo"), new RTextCell("$")]);
restaurants.push([new RTextCell("Denny's"), new RTextCell("$")]);
console.log(drawTable(restaurants));

 

I'm not entirely sure why, but I'd attribute it to this line of code:

RTextCell.prototype = Object.create(TextCell.prototype);

If you are reusing this code to make your BorderedTextCells, this might help.

 

 

Last edited by BrianK at 20:32 Sep 30, 2016.