Mercurial > hg > digilib-old
diff webapp/src/main/webapp/jquery/jquery.digilib.js @ 957:c4bd6f984aee
don't set position of scaler div, just size.
author | robcast |
---|---|
date | Fri, 13 Jan 2012 14:07:57 +0100 |
parents | 02a20f020c06 |
children | e9e50df87c9a |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js Tue Jan 10 17:44:18 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.js Fri Jan 13 14:07:57 2012 +0100 @@ -1263,8 +1263,8 @@ // reset busy cursor $('body').css('cursor', 'auto'); $scaler.css('cursor', 'auto'); - // adjust scaler div size - imgRect.adjustDiv($scaler); + // adjust scaler div size (beware: setting position makes the element relative) + imgRect.getSize().adjustDiv($scaler); // show image in case it was hidden (for example in zoomDrag) $img.css('visibility', 'visible'); $scaler.css({'opacity' : '1', 'background' : 'transparent'});