• Post Reply Bookmark Topic Watch Topic
  • New Topic

rich calendar flickers if it is kept inside toggle panel

 
Maitri Pujara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have kept rich calendar component inside toggle panel. And it is flickering if you click on the controls. It is fine in normal page.

Can anyone help me please.
 
Tim Holloway
Bartender
Posts: 18417
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Maitri!

I can't tell 100%, but it does sound like you are causing the toggle panel to be re-rendered, and when you do that the entire contents of the components within the panel will be redrawn, which can cause flickering if the redrawing is a complex operation such as a calendar control with many sub-components.

To minimize flicker, you'll need to determine what triggers the redrawing (re-rendering) of the toggle panel and reduce the amount of redrawing. Also if you can be more selective about what you choose to update within the panel it will help.
 
Maitri Pujara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying..!!!

I have btw managed disabling next and prev, month and year controls. But I couldn't agree with you. when first time I come to my page, all the fields are blank and I try first thing to select a date. Still it flickers.

It happens for any first click only, the rest of the clicks are fine.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!