roImageCanvas Text wrapping not working

I am putting together a POC for a presentation and I need to display an encoded value and then the decoded value on screen. Now I have the decoded workign nicely, however the encoded vale comes in as a string of about 1024 characters. Now I am using the below code and when I display it on the screen, it doesn’t stay in the rect at all. I can move the x and y around and that works, but it doesnt even recognize the width and height values at all. Am I doing something wrong?

arr = CreateObject(“roAssociativeArray”)
raw[“targetRect”] = {x:100, y: 100, w:20, h:100}
raw[“textAttrs”] = { font: “small”, color:m.textColor, HAlign: “Left”, VAlign: “Top” }
raw[“text”] = encodedVal
m.canvas.SetLayer(1, raw)