Closed (duplicate)
Project:
Administration menu
Version:
7.x-3.x-dev
Component:
CSS / Browser Support
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2012 at 17:03 UTC
Updated:
4 Jan 2013 at 19:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
Nil Gravitas commentedI think that the problem lies in /admin_menu_toolbar/admin_menu_toolbar.css, line 29:
Changing this to:
fixes the issue in Safari.
Comment #2
hey_germanoI'm seeing the same thing in the Seven theme. Here's a patch of the solution in #1.
Comment #3
dcmouyard commentedThe patch in #2 fixes this issue, which shows up in all themes, not just Garland and Seven.
Comment #4
webbykat commentedThat patch solved this for me too. It does mess with the shadowing a little bit - it now fades on the left and right, whereas before the shadow spanned the full width. It doesn't look bad, though, and is well worth getting rid of the horizontal scrollbar.
Comment #5
kmontyI don't agree with this solution. While it works, the drop-shadow looks incorrect at the left and right ends of the toolbar.
Alternative patch soon.
Comment #6
kmontyComment #7
kmontyHere is a patch that fixes the horizontal scroll issue without making any design changes to the admin_menu.
Tested in (Mac) Safari (latest), Firefox 13.0.1, Chrome 19 w/ Seven, Bartik, Garland and Stark (all browsers, all themes).
Still requires additional review with Windows machines and IE.
Comment #8
sunoy. :) Can you explain a little what you've done? :)
E.g., why shifting the content box and border offset only on the left? (btw, did you test whether your trick still works with RTL?)
In general, did anyone test whether box-sizing: border-box; might help in any way?
Comment #9
kmontyI did not test in a RTL environment. I guess we gotta add that to the list too.
Explanation:
I first played around with the margin and padding settings. I quickly discovered that when setting the values to...
...the horizontal scroll problem persisted. However, setting the margin/padding to...
...produced no horizontal scroll (suggesting the right margin is to blame), made the box-shadow 20px wider to the left than the zero padding/margin patch, and produced no visual difference to the toolbar itself.
With the toolbar now 20px wider, I made the horizontal offset value of the box-shadow 10px, thus giving 10px to both the left and right edges and removing the drop-shadow fade out issue presented in the original patch.
Sorry, nothing more scientific. That's all the reasoning I have...
Comment #10
frobThe above patches fail on when using a right to left language.
This one will work with rtl
This one will work with ltr
Comment #11
frobHere is a patch that should work in both rtl and ltr
Comment #12
kmonty@frob - I think you forgot the box-shadow fixes?
Comment #13
frobRight, there is more, I think there are some other problems with rtl that need to be addressed. Marking it back to needs work. I might have time to submit another patch later.
Comment #14
frobI see that the rtl broken dropdowns is not caused by my patch but is another issue being handled over at No dropdown menus in RTL language
So here is my new patch.
Comment #15
lpeabody commentedGreat patch. That scrollbar was super annoying. Thanks.
Comment #16
sunThis looks like a duplicate of #1683132: Extra 20px padding causes horizontal scrolling by now. Feel free to correct me if I'm mistaken.
Comment #17
alexverb commentedPatch 14 fixed it for me too. Thx
Comment #18
letrotteur commentedHaven't test for ltr but patch at #14 solved the scroll bar issue for me on all major browsers.
Comment #19
magenbrot commented#14 fixes this issue. a new release should be deployed :) thanks!
Comment #20
dillix commentedwiped
Comment #21
dillix commented