The correct behaviour for an HTML div with a defined height but no
content is. I believe, to be rendered with no height. That would mean
testing for its actual rendered height would return 0. A non-breaking
space HTML entity ( ) inside the empty div will cause it to
render at its defined height.

On Oct 28, 6:56 pm, jjon <[email protected]> wrote:
> here's a puzzle for you javascript wizards out there.
>
> As I understand it, the timeline software calculates the size of a
> popup bubble in SimileAjax.Graphics.createBubbleForContentAndPoint. It
> first generates the div for the bubble offscreen, and then in a
> window.setTimeout function, it measures the size of the resulting div
> by getting the div's srollHeight, then uses
> createBubbleForContentAndPoint again to create the bubble with the
> right dimensions at the point on the timeline where it's called for.
> This gives it time for the contents of the bubble to be rendered
> offscreen so that the correct height can be determined.
>
> This is pretty damned clever, but I'm puzzled by this: If the
> description div in the body of my bubble contains an image, the
> resulting bubble honors the dimensions of the image and opens a bubble
> of the correct height to contain it; however, if the bubble contains a
> div with a declared height and width, those dimensions are ignored
> unless the div in question actually has content.
>
> Can anyone suggest how I might compel createBubbleForContentAndPoint
> to honor the declared dimensions of the divs within the bubble content
> such that the bubble is opened with the cumulative heights of the
> contained elements, even if that means including whitespace?
>
> Jon

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to