Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    setBackgroundColor is 'lightgray' sensitive in IE?

    Hi

    got error like this in log when running in IE.

    Code:
    	'Invalid property value.'
    	in http://localhost:8090/DEV/XXX.html
    	at line 1519
        Canvas.setBackgroundColor(_1=>"lightgray")
            "if(_1)this.backgroundColor=_1;if(this.isDrawn()){return this.getStyleHandle().backgroundColor=_1}"
        DayBox.updateBox(day=>24,  inMonth=>0)
    There are three unique points about this error:
    1. It happens in IE, but works fine in FireFox
    2. If using 'gray' or 'lightyellow' or 'lightgreen' instead of 'lightgray', the program works fine.
    3. this is a 'VStack' object, when initializing it, we use this.backgroundColor='lightgray'. It shows correctly; At the time to update it, we use setBackgroundColor("lightgray") function to set the color, the error happens.

    we use color names like 'lightgray, lightgreen' etc. in the program. It works fine so far for most of cases.

    It doesn't stop us from programming, but it might be a system bug to be fixed.
Working...
X