Forums > Javascript

JSUI rendering text with black background

Oct 07 2010 | 10:59 am


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)


Adam Jansch

  1. aj-js-router.js
Oct 08 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…

: )


Oct 08 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?


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

Forums > Javascript