--- zogiLib/js/baselib.js 2008/01/17 17:57:58 1.9 +++ zogiLib/js/baselib.js 2008/10/29 01:00:56 1.12 @@ -17,13 +17,13 @@ Foundation, Inc., 59 Temple Place - Suit Authors: Christian Luginbuehl, 01.05.2003 (first version) DW 24.03.2004 (Changed for digiLib in Zope) - Robert Casties, 11.9.2007 + Robert Casties, 22.1.2008 */ function base_init() { // init function - baseScriptVersion = "1.2.2"; + baseScriptVersion = "1.2.4"; dlParams = new Object(); browserType = getBrowserType(); } @@ -376,7 +376,7 @@ function getElementPosition(elem) { // returns a Position with the position of the element var x = 0; var y = 0; - if (elem.offsetParent) { + if (defined(elem.offsetParent)) { // use .offsetLeft for most browsers var e = elem; while (e) { @@ -607,7 +607,7 @@ function registerKeyDown(handler) { function getWinSize() { // returns a Size with the current window size (mostly from www.quirksmode.org) var wsize = new Size(100, 100); - if (defined(self.innerHeight)) { + if (!browserType.isIE) { // all except Explorer if ((self.innerWidth == 0)||(self.innerHeight == 0)) { // Safari 1.2 (and other) bug