Author | Thread |
|
11/24/2009 09:37:55 AM · #26 |
I don't know peeps, should we trust him??? roflmao!!!
The windows peeps are not liking the costume choices for the Windows guy in the commercials. You're just jealous...so with all of the virus experience Windows has, this is your 'get even'? :P
Originally posted by Bugzeye: This thread is a virus created by Windows 7 to get even with Apple for those Mac vs PC commercials.
Originally posted by ssturges: And of course right after I posted my last post, I have that scroll bar. I am really not sure what to say now. It wasn't there right before I posted... I even have the screen shot to prove it. | |
|
|
|
11/24/2009 12:10:58 PM · #27 |
Originally posted by ssturges: And of course right after I posted my last post, I have that scroll bar. I am really not sure what to say now. It wasn't there right before I posted... I even have the screen shot to prove it. |
Just to be iron-clad clear, it's because the page in the capture you provided doesn't scroll vertically. To see the horizontal scroll bar, the page has to be long enough to also scroll vertically.
It's still a problem that could be addressed in some future iteration of the website, but its occurrence is very specific. The worst result for me, in addition to using Magic Mouse as I've described in the first post, is in voting. I use the arrow keys while voting. If the image is large enough, the page scrolls vertically -- and thus also horizontally. When I use the right arrow to move through the images, the page first scrolls to the right before moving to the next image, making the photo shift. Very annoying.
Message edited by author 2009-11-24 12:11:58. |
|
|
11/25/2009 05:10:47 PM · #28 |
Just updated to Safari v4.0.4 and the horizontal scrollbar is still there.
I wonder is this a bug in safari, or something to do with the DPC site layout? |
|
|
11/25/2009 05:25:44 PM · #29 |
The problem is that either menu9_31.js or menu9_com.js is pushing the DPC menubar too far to the right, causing the scrollbar.
Forget that, it's something else to do with the menu.
Message edited by author 2009-11-25 17:32:29. |
|
|
11/25/2009 05:28:18 PM · #30 |
Originally posted by JH: The problem is that either menu9_31.js or menu9_com.js is pushing the DPC menubar too far to the right, causing the scrollbar. |
Interesting... know the fix offhand? |
|
|
11/25/2009 05:29:58 PM · #31 |
Originally posted by JH: The problem is that either menu9_31.js or menu9_com.js is pushing the DPC menubar too far to the right, causing the scrollbar. |
What he said. I can take a look at fixing it... sorry, I only skimmed the thread -- does the behavior exist on the Windows build of Safari? |
|
|
11/25/2009 05:33:15 PM · #32 |
Still looking at it - I removed these two scripts but the issue is still there (I think) |
|
|
11/25/2009 05:55:26 PM · #33 |
I changed this line in menu9_com.js
var StartLeft=((FFYes || ChromeYes)?-17:0); // Menu offset y coordinate. If StartLeft is between 0 and 1 StartLeft is calculated as part of windowheight
to
var StartLeft=-17 // Menu offset y coordinate. If StartLeft is between 0 and 1 StartLeft is calculated as part of windowheight
I just hardcoded it to -17 and it seems to fix the problem. Setting it to 0 made the scrollbar reappear.
So I think there needs to be a conditional check for MacCom in there as well... |
|
|
11/25/2009 05:59:33 PM · #34 |
Originally posted by langdon: Originally posted by JH: The problem is that either menu9_31.js or menu9_com.js is pushing the DPC menubar too far to the right, causing the scrollbar. |
What he said. I can take a look at fixing it... sorry, I only skimmed the thread -- does the behavior exist on the Windows build of Safari? |
Yes, both the Windows and OS X versions of Safari show this behaviour. |
|
|
11/25/2009 06:21:54 PM · #35 |
Originally posted by JH: I just hardcoded it to -17 and it seems to fix the problem. Setting it to 0 made the scrollbar reappear. |
I reversed the logic so that only IE gets 0 and everyone else gets -17... that fix it? |
|
|
11/25/2009 06:35:56 PM · #36 |
Originally posted by langdon: Originally posted by JH: I just hardcoded it to -17 and it seems to fix the problem. Setting it to 0 made the scrollbar reappear. |
I reversed the logic so that only IE gets 0 and everyone else gets -17... that fix it? |
No. But I'm not seeing any changes in that script, it still reads: var StartLeft=((!FFYes && !ChromeYes)?0:-17);
Ah, I see what you did! It's not having any effect though.
For reference, the useragent string for Safari on OSX reads: "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10"
Message edited by author 2009-11-25 18:36:44. |
|
|
11/25/2009 06:40:16 PM · #37 |
|
|
11/25/2009 06:42:53 PM · #38 |
Originally posted by JH: For reference, the useragent string for Safari on OSX reads: "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10" |
And this is the UA string on Safari Windows:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Same diff, just the OS.
Message edited by author 2009-11-25 18:43:26. |
|
|
11/25/2009 06:52:12 PM · #39 |
The following seems to work (I just plugged the test for IE directly into the script);
var StartLeft=((/MSIE (\d+\.\d+);/.test(navigator.userAgent))?0:-17);
Tested on Firefox, Chrome, Safari, and Opera on OSX - NEEDS TESTING on IE !! |
|
|
11/25/2009 06:58:09 PM · #40 |
Thanks JH... looks fine in IE. |
|
|
11/25/2009 07:02:46 PM · #41 |
Originally posted by langdon: Thanks JH... looks fine in IE. |
No problem. ;-)
Looks fine in Safari now - Is it okay for you Louis? |
|
|
11/25/2009 07:10:02 PM · #42 |
|
|
11/25/2009 07:46:37 PM · #43 |
Originally posted by JH: Originally posted by langdon: Thanks JH... looks fine in IE. |
No problem. ;-)
Looks fine in Safari now - Is it okay for you Louis? |
Yes, fixed. Thanks so much for this. |
|
|
11/25/2009 09:00:45 PM · #44 |
It appears that this fix has disabled horizontal scrolling in Firefox. That regex has to be finessed, I think. |
|
|
11/25/2009 09:12:44 PM · #45 |
Okay, here are the scrollbar results I'm getting at the moment;
Windows XP
IE7: Ok
Firefox 3.5.5: Broken (no horizontal scrollbar)
Chrome 3.0.195.33: Ok
OS X
Chrome 4.0.249.12: Ok
Safari 4.0.4: Ok
Opera 9.27: Ok
Firefox 3.5.5: Broken (no horizontal scrollbar)
So I think Firefox should be treated the same way as IE in that statement
ETA: When I said I'd tested in my other post, I'd actually tested to make sure the horizontal scrollbar *didn't* appear!
Message edited by author 2009-11-25 21:13:53. |
|
|
11/25/2009 09:44:13 PM · #46 |
There's something whacky going on here. I've changed the line back to;
var StartLeft=((FFYes || ChromeYes)?-17:0);
And the horizontal scrollbar still doesn't appear in firefox!
Did the firefox issue exist before this change? - Because I've hardcoded -17 and 0 into that line, and still no horizontal scrollbar in FF. I suspect that horizontal scrolling in FF was already broken.
ETA: var StartLeft=( ( (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) || (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) )?0:-17 );
That's the code to add the Firefox test into the condition, but as I said, -17, 0, whatever won't work for Firefox...
Message edited by author 2009-11-25 21:51:03. |
|
|
11/25/2009 09:53:32 PM · #47 |
Hum that's weird. I love web design! Standards abound!! :D |
|
|
11/25/2009 09:55:28 PM · #48 |
On the other hand, the guy from the other thread seemed to be suggesting this problem was new. As it just cropped up immediately after this fix, it seems related. |
|
|
11/25/2009 10:00:57 PM · #49 |
Originally posted by Louis: On the other hand, the guy from the other thread seemed to be suggesting this problem was new. As it just cropped up immediately after this fix, it seems related. |
Unless he decided to check it because we were all going on about the horizontal scrollbar in this thread... :)
So if Langdon wants to change back the line in that script to see if the horizontal scrollbar reappears in FF... Because I couldn't make it work on my test server. |
|
|
11/25/2009 10:20:36 PM · #50 |
Originally posted by JH: Firefox 3.5.5: Broken (no horizontal scrollbar) |
I'm confused... there should NOT be a horizontal scroll bar in any browser. This is true in FireFox 3.5, Chrome, Safari4, and IE8 on Windows 7. The FFYes and ChromeYes variables were removed from the script, so maybe it's a cache issue? |
|
Home -
Challenges -
Community -
League -
Photos -
Cameras -
Lenses -
Learn -
Help -
Terms of Use -
Privacy -
Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/27/2025 01:49:53 PM EDT.