On 8 juin 09, at 17:56, Cajus Pollmeier wrote:
> I've a problem running my qooxdoo application inside IE7 (IE8 in IE7
> mode, because I can't find any usable debugger...). IE stopps the  
> script
> with: "Invalid argument"
> Happening in line 335 of qx.bom.element.Style where "value" is "-5px"
> and "name" is "width". "element" is DispHTMLDivElement. There's no  
> "-5"
> in my sources and I'm wondering where it comes from.

Three weeks ago, Cajus finally tracked down his problem to a  
setWidth(0) that he could just delete.
I am currently having the exact same problem but I can't do away with  
the setWidth(0) as easily.
I have a selectbox and I am theming its "selectbox/arrow" so that its  
width is 0.

----
                "tightselectbox/arrow":
                {
                        alias: "selectbox/arrow",
                        include: "selectbox/arrow",
                
                        style: function(states)
                        {
                                return {"width": 0, "height": 0};
                        }
                }
----

I do this because visibility is not a themeable property and I want to  
hide the arrow. On every other browsers it seems to work fine.  
Howether on IE8 the arrow width is set at -5, producing an error. If I  
do something like this instead

----
                                return {"width": 1, "height": 0};
----

IE 8 errors out because the arrow width gets set at -4. So it seems  
than in the case of IE8, the arrow width gets set at exactly 5 less  
than what I asked for.
And indeed
----
                                return {"width": 5, "height": 0};
----
makes it work on IE8.

It looks like the bug is in Qooxdoo but I tried and could not find  
exactly where the bug comes from.

Is there a clean workaround for this? If not, could anyone tell me the  
proper way to test for IE8 and not another IE variant in a  
Appearance.js theme file?

Thanks in advance,
V.






------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to