Closed medihack closed 11 years ago
It seems that fetching the offset of the parent element by using goog.style.getClientPosition(this._container)
instead of directly using this._container.offsetTop
resp. this._container.offsetLeft
solves this issue (in the showCaption_
function).
The location of the caption is wrong if the viewer (that in the end contains the canvas) is placed into an absolute positioned container.
Example:
The caption is placed 100 pixels too high.