Some Opera Issues

1 view
Skip to first unread message

andrewg_oz

unread,
Jul 30, 2006, 5:12:45 AM7/30/06
to TiddlyWikiDev
I've been playing with both the current release v2.0.11 and the recent
beta 2.1.0 with Opera and noticed a couple of issues that affect both.

1. The example Periodic Table doesn't display because Opera doesn't
like inserting an element before itself. Fix: search for the code
"table.insertBefore(rowContainer,table.firstChild);" and add "if
(rowContainer != table.firstChild)" in front of it.

2. In the function "Cascade.prototype.tick" Opera complains that null
is an inappropriate value to assign to style.zIndex. Might I suggest
"auto"? Deleting the property works too, as in "delete
this.targetElement.style.zIndex;".

Apart from that, I've been very impressed! :-)

Jeremy Ruston

unread,
Jul 31, 2006, 12:20:19 PM7/31/06
to Tiddly...@googlegroups.com
Hi Andrew

> 1. The example Periodic Table doesn't display because Opera doesn't
> like inserting an element before itself. Fix: search for the code
> "table.insertBefore(rowContainer,table.firstChild);" and add "if
> (rowContainer != table.firstChild)" in front of it.

Ouch, thanks, that'll be fixed in beta 3.

> 2. In the function "Cascade.prototype.tick" Opera complains that null
> is an inappropriate value to assign to style.zIndex. Might I suggest
> "auto"? Deleting the property works too, as in "delete
> this.targetElement.style.zIndex;".

Hmmm, this one is annoying. "auto" doesn't work in IE, nor does
delete. So I've gone with a dreaded browser detect:

this.targetElement.style.zIndex = config.browser.isIE
? null : "auto";

I'd welcome any more elegant alternatives,

Cheers

Jeremy

>
> Apart from that, I've been very impressed! :-)
>
>
> >
>


--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com


--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com

andrewg_oz

unread,
Jul 31, 2006, 12:53:14 PM7/31/06
to TiddlyWikiDev
Ooops! How about:

this.targetElement.style.zIndex = "";

?

Just checked in Opera, Firefox, and IE.

Reply all
Reply to author
Forward
0 new messages