xtk/X — pull request #19 by WingedTurtle (2012-04-23 06:28:04+00:00)
Title: Positioning change in caption.js and progressbar.js

This is a small change.

The previous code changed the div containing the renderer canvas to have relative positioning. This allowed the absolute positioning of captions and progressbars to be taken relative to the canvas div rather than the main window.

However, placing any positioning other than the default "static" on the canvas div will work.

In my Neuroview web-app, I was using absolute positioning on my canvas div because I was arranging several of them in a grid.

However, as soon as a progressbar or caption was initialized, XTK would change my canvas div to have relative positioning, destroying my layout.

My change to the XTK code will change the canvas div's positioning to "relative" ONLY if the canvas div's positioning was previously the default "static".

This code has been tested, and the captions and progress bars still work like before.

Thanks,
Mark