...

View Full Version : Problem with scroll bars in Safari



gerald
09-11-2011, 02:33 PM
Hi,

I have written a magnifier (using both CSS and JavaScript), and it appears to work OK in the four browsers I have tested (IE9, FF3.5.7, Safari 5.1, and Opera 11.51). However, Safari annoyingly puts in scroll bars when you are magnifying the picture.

I can get rid of this by making the ctrlDiv offset as hidden, but then this removes the bottom scroll bar completely in all browsers (not really useful if the document is bigger than the browser window).

I have read about putting the image as a background image of another element, but cannot for the life of me get this to work at all.

Also, the functions to return the absolute position of elements (and mouse pointer) does not work if the document has a margin (i.e. width:1216px;margin:auto) - but I can work around this at the moment.

Anyway, the complete code is at http://www.geraldholdsworth.co.uk (it was easier to stick it there and post a link than to post the code here).

Cheers,

Gerald.

Logic Ali
09-11-2011, 08:42 PM
Safari: What version? What platform? It's fine under the current Windows version.

gerald
09-11-2011, 08:45 PM
Safari: What version? What platform? It's fine under the current Windows version.

It's Safari 5.1 on Windows 7.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum