changing a flyout's size

I'm having an issue with changing the size of a flyout. The size changes, but the window appears slightly lighter than it should be (i.e. everything is slightly grayed out) and nothing appears "active" (i.e. events don't seems to be fireing). Once I click anywhere in the flyout, the color goes back to normal and controls events go back to normal.

I thought I was going something wrong. Then I tried the same thing with the stocks gadget. To reproduce:

  1. Hover over te gadget and click Add a stock symbol
  2. In the flyout, click Show stock symbol

Notice that the black seems gray and hovering over the stocks have no effect. Is this a known Sidebar bug? Is there a workaround that I can do in my code? If not I may have to rethink my design so I don't have to resize.

[829 byte] By [LiveGadgets] at [2008-2-4]
# 1

Sorry, but I just noticed another post where someone is having the same problem. I didn't mean to ask the same question, but maybe something unique to my situation will help solve the problem.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1008839&SiteID=1

LiveGadgets at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 2

>>Sorry, but I just noticed another post where someone is having the same problem.

I'm happy to see I'm not the only one with this problem, and that I'm not going mad. It is an infuriating problem, that I was up past midnight trying to solve to no avail. Documentation doesn't even mention it. If no-one gets back in the next day, I'll post some of the relevant code, but I do think the code is doing nothing unusual and that it is a more "general" problem that plenty of people will encounter.

Chris

Chrisull at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 3

I was shocked myself to see one of Microsoft's own shipping gadget exhibit the same problem. I've decided to put my design on hold because of this odd Sidebar bug. If you come across a workaround, post it here and I'll do the same.

Good luck!

LiveGadgets at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 4
Its a known bug - as you've noted, it occurs when you resize the body of the flyout. I believe Mr. Abbott has suggested a workaround involving waiting for 300 milliseconds and then calling window.setFocus() - I haven't tested it so I don't know how reliable it is.
BruceWilliams at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 5

>>I was shocked myself to see one of Microsoft's own shipping gadget exhibit the same problem. I've decided to put my design on hold >>because of this odd Sidebar bug. If you come across a workaround, post it here and I'll do the same.

If you refer back to this thread, Jonathan has provided an example that worked for me:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1008839&SiteID=1

Be interested to know if it works for you as well.

Chris

Chrisull at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...