Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-11-2011, 02:33 PM   PM User | #1
gerald
New Coder

 
Join Date: Sep 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
gerald is an unknown quantity at this point
Problem with scroll bars in Safari

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.
gerald is offline   Reply With Quote
Old 09-11-2011, 08:42 PM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Safari: What version? What platform? It's fine under the current Windows version.
Logic Ali is offline   Reply With Quote
Old 09-11-2011, 08:45 PM   PM User | #3
gerald
New Coder

 
Join Date: Sep 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
gerald is an unknown quantity at this point
Quote:
Originally Posted by Logic Ali View Post
Safari: What version? What platform? It's fine under the current Windows version.
It's Safari 5.1 on Windows 7.
gerald is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:34 AM.


Advertisement
Log in to turn off these ads.