I have the "Popular content" Views block enabled. Everything works nicely except one small observation...

When I put my mouse over one of the view links, I see my horizontal scrollbar appear (seems like something else is appearing to the right side way out of my screen's resolution). I am using FF3.

I have also tested the same page on other browsers, here are the results:

Opera 9.5: No problem. All normal.
Safari 3.1.2: No problem. All normal.

Any suggestions on what may be causing this?

Comments

merlinofchaos’s picture

My guess is that your theme is adding the CSS directive "overflow: scroll" to blocks, and the hover links in Views are activating this. Your theme may need some additional CSS directives to force the views hover links to a safe width for that theme. It's hard for Views to do this itself since this varies from theme to theme.

spiffyd’s picture

I don't see any "overflow: scroll;" in my theme's CSS. Perhaps the behavior is default for FF3. Do you think simply adding "overflow: hidden" somewhere for that block would solve this?

Once again, the issue is only present in FF3.

Not sure if Doctypes could also be affecting this, but I'd like to note that my page.tpl.php is using...

merlinofchaos’s picture

It's not default for FF3, and I've never seen the scrollbar appear due to that. I don't think it matters that much; only administrators can see these links anyway, but you might try overflow: hidden.

merlinofchaos’s picture

Status: Active » Closed (won't fix)
DrStein-1’s picture

I'm getting this bug too, and It's very annoying... i've fixed for now with overflow-x: hidden; on CSS but I'd like to haver a better solution... can anyone help with this?

spiffyd’s picture

Status: Closed (won't fix) » Fixed

I found the solution to this...

Basically, what is triggering the extra "horizontal bar" is the views-admin-links container. This should only be visible to all users that have permissions to "administer views". So that's why you (admin) can see the bar and the overflow...

So if anonymous users can't administer views, they won't actually see the container. Try logging out and see for yourself!

Or if you're like me and find that container to be annoying (I don't even use it), you can actually hide it by adding this line to your CSS:

#primary .views-admin-links { display:none; }

Hope this helps!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

wickedskaman’s picture

For any who still need tips on this...

If you need the admin hover your can simply give it a set width like so

div.view div.views-admin-links {
	width:300px;
}

The end.

peterparker’s picture

Thanks wickedskaman. This almost-bug was on todays to-squash list and your css worked a charm.

In case it is of help to anyone else, setting the width to "100%" does not work, but setting it to "auto" does.

I would have to argue though that since it is the views.css file which originally sets the width to 95% it is the fault of views that this undesired behavior exists in the first place. I only run three drupal sites (with three different themes) but I cannot find a situation where this 95% is actually necessary. Indeed, removing it causes no harm whatsoever on my sites.

merlinofchaos has marked this issue as won't fix, but it feels awkward to me to have views set an unnecessary style only to then have it reversed by my own style.css. Am I alone on this one? Is there a good reason to set the width to 95% in the first place?

wickedskaman’s picture

I really don't see a good reason except to have the admin area "clickable" throughout the length of the page directly above the view. However, that admin pop up tends to flicker on and off as it is (in Firefox 3.5.5 anyway) so it's never really much use to me. It's more of a nuisance.

My theory is that who ever was responsible for the CSS was using Safari or another browser and the 95% didn't pose a problem whereas 100% probably did.

I feel won't fix is not an acceptable answer and someone should test CSS that works in all cases and not give the dev user extra worries/issues to cross off the to-do list. Clients are demanding enough! :)

merlinofchaos’s picture

Your theory is wrong. I don't use Safari at all, I use firefox.

You can turn it off. Please do so. I am not beholden to your clients, so please do not think that bringing them up provides any motivation for me to accede to your demands. I feel the current situation has an easy workaround, and you should use it rather than wasting time and bandwidth complaining about it on a closed issue.

wickedskaman’s picture

My mistake about the theory... perhaps the issue strictly crops up on a theme-to-theme basis.

I think people here, including myself, are curious about the reasoning for continuing to include some CSS that becomes a headache to more than a handful of people when troubleshooting along with a slew of other unrelated problems. I was certainly not trying to force anyone's hand or influence anyone to accede to any demands of mine. I apologize if you felt this was a personal slight coming from me. I was simply stating my opinion on the matter. Please notice that I did not change the status on the issue. I feel that conversations in any of drupal.org's outlets only serve to build up the information in the community. I have not been using Drupal for too long now (maybe a year) but I have learned lots from people continuing to voice their opinions on matters whether or not the issue has been closed. Usability for developers and end users is, in my opinion, a valid point to discuss in any context.

peterparker’s picture

For what it's worth, I fell the same way.

Conversations on drupal.org, wherever they appear, are a huge part of the learning experience that goes into making useful contributions. It might have been a comparatively trivial matter compared to things that you are working on, but to have wickedskaman comment on something that I wrote was a great help to me.

No disrespect intended.

Merry Christmas to you both.

wickedskaman’s picture

Thanks, gomerpyle, that's appreciated. Stay chill....

merlinofchaos’s picture

Another reason not to be talking about it here: http://drupal.org/node/335599

wickedskaman’s picture

Thanks for the link, merlinofchaos! :-*