Forums > Javascript

JSUI rendering text with black background

October 7, 2010 | 10:59 am

Hi,

Had a quick look at previous forum posts but came up with no answer… I am drawing text into a JSUI but, after compiling the JS file, the text appears on a black background, and as the text is black this is a problem! If I resize the JSUI object the text redraws properly, with a transparent background. How can I fix this? (JS file attached)

Thanks,

Adam Jansch

Attachments:
  1. aj-js-router.js

October 8, 2010 | 6:03 am

here’s a work-around which will sort it out – you need to give the jsui object the appropriate scripting name (‘routerUI’)

– Pasted Max Patch, click to expand. –

but prevention would be better than cure…

: )

sdf


October 8, 2010 | 8:33 am

Hey Sam,

That’s a cute workaround :-) I tried the same thing from within Javascript but it didn’t work; this though should work as it mimics the mouse movement of resizing the JSUI externally.

You’re right though, prevention is better than cure … does anyone know if there is a prevention for this problem?

Adam


Viewing 3 posts - 1 through 3 (of 3 total)