Open GoogleCodeExporter opened 8 years ago
checked out version of src/webapp/api/scripts/util/view.js reads: ... Exhibit.ViewUtilities.openBubbleForItems = function(anchorElmt, arrayOfItemIDs, uiContext) { var coords = SimileAjax.DOM.getPageCoordinates(anchorElmt); var bubble = SimileAjax.Graphics.createBubbleForPoint( coords.left + Math.round(elmt.offsetWidth / 2), coords.top + Math.round(elmt.offsetHeight / 2), uiContext.getSetting("bubbleWidth"), // px uiContext.getSetting("bubbleHeight") // px ); Exhibit.ViewUtilities.fillBubbleWithItems(bubble.content, arrayOfItemIDs, uiContext); }; ... remote version at http://static.simile.mit.edu/exhibit/api-2.0/scripts/util/views.js reads: ... Exhibit.ViewUtilities.openBubbleForItems = function(anchorElmt, arrayOfItemIDs, uiContext) { var coords = SimileAjax.DOM.getPageCoordinates(anchorElmt); var bubble = SimileAjax.Graphics.createBubbleForPoint( coords.left + Math.round(anchorElmt.offsetWidth / 2), coords.top + Math.round(anchorElmt.offsetHeight / 2), uiContext.getSetting("bubbleWidth"), // px uiContext.getSetting("bubbleHeight") // px ); Exhibit.ViewUtilities.fillBubbleWithItems(bubble.content, arrayOfItemIDs, uiContext); }; ... notice that the bug is already corrected when the declaration "elmt" is substituted by "anchorElmt" Windows XP, TortoiseSVN 1.4.7, Build 11792 - 32 Bit [Submitted by Israel López de Victoria Cortés on simile.mit.edu]
Original issue reported on code.google.com by GabrielR...@googlemail.com on 4 Apr 2009 at 4:56
GabrielR...@googlemail.com
Original comment by GabrielR...@googlemail.com on 4 Apr 2009 at 6:59
Original issue reported on code.google.com by
GabrielR...@googlemail.com
on 4 Apr 2009 at 4:56