m3avrck wrote:
Turns out the problem with the window disappearing in IE6...You cannot use overlay: 0 doh! Took me 2 hours to figure out, you need to specify a minimum of 1 for it work like so: $("#cssmizer") // initialize CSSmizer .cssmizer(settings) // setup modal .jqm({ trigger: "#cssmizer-launch", // note we don't want to grey out the rest of the screen // we can't set this to 0, otherwise everything disappears in IE6 overlay:1, // because tabs are being shown in a jqModal window which is hidden by default // we can only show the tabs *after* the window is shown // otherwise we get oddities across browsers onShow: function(hash) { // we show the window using a speed of 1 to be as instaneous as possible // and for the tabs to render as fast as possible to avoid flickering hash.w.show(1, function() { $ ("#container").tabs(); }); } }) .jqDrag('h3.title'); Notice how many comments I've had to add -- took me hours to figure out these little gotchas ;-)
Good work!
Will be announcing the plugin very soon, it's going to rock and amaze people, based on the current feedback ;-) [yes, it's called CSSmizer] However, found another bug -- onShow is called the first time the page loads, but if you close the window and try it again, onShow is not fired... doh!
So the window is only showing the first time you click the trigger and no other times? I've never had that problem... very odd. Can you provide any more detail on what is and isn't happening? If the tabs have already rendered you wouldn't want the code to run again ideally but I doubt thats what's causing the problem. Happy bug hunting for now,
Rob

