DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » Autosize Event Bubbles - almost!

Autosize Event Bubbles - almost!

Bubbles appear to have a fixed width. I wanted them to autosize to contents, so I placed a table in the InnerXml to help formatting and set the bg color of the table to 'tooltip yellow' using the 'style'. Then set the bg color and border color on the bubble itself to Transparent, and turn off the bubble shadow.

This works perfectly in IE7, but in IE6 you can still see a grey line around the original bubble - which looks like the shadow still displaying. Not sure if this is a bug or just a 'feature' of IE6, but ifdo youknow a way to stop this grey border still appearing, or another way to autosize the bubble width to contents?

Thanks
Simon
mailto:coding(REMOVEME)@controlbox(ANDME).co.(ANDMETO)uk

Simon Edwards - 3/11/2008 10:57:38 AM
The workaround would be to turn off the shadow by setting UseShadow="false".

The automatic width is not easy to achieve (it's an absolutely positioned div) but it would be possible to make it overridable in the RenderContent event handler.

Would that help you?
Dan Letecky - 3/12/2008 6:10:14 PM

I'm turning off the shadow, but in IE6, you stll get a 'ghosted' outline of the bubble although everything is set Transparent - almost as if the bubble shadow is still showing. If you send me your email address, I can send you screen dumps of IE6 and IE7 so you can see the difference in behavoir.

Cheers
Simon
mailto:coding(REMOVEME)@controlbox(ANDME).co(ANDMETOO).uk

Simon Edwards - 3/13/2008 4:11:59 PM
Please write to support@daypilot.org.

I will check what happens to the shadow in IE6 (but it shouldn't be visible).
Dan Letecky - 3/13/2008 4:48:36 PM
Post reply