Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#1050 closed defect (wontfix)

Make browsing pages more consistent

Reported by: mail@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.8
Severity: trivial Keywords:
Cc: manuzhai@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It often annoys me that pages within a web application shift when I move from a short page to a longer page, due to the appearing of the scrollbar. Adding a few lines to the CSS always makes sure the scrollbar is there, making the browsing feel more consistent.

html {

min-height: 100%; margin-bottom: 1px;

}

Attachments (0)

Change History (11)

comment:1 by mail@…, 20 years ago

Use the right email-address…

comment:2 by Juanma Barranquero, 20 years ago

In Firefox, a 1px bottom margin makes non-full-width pages scrolleable, which is not nice.

Using a smaller amount, 0.01em for example, the scrollbar is visible and the page cannot be scrolled, which is the intended effect after all. Pity that there's no way (that I know of) to make the scrollbar be visible but disabled, as it does on IE/Win…

comment:3 by anonymous, 20 years ago

Cc: manuzhai@… added

comment:4 by Mark Rowe, 20 years ago

I'm not convinced that this is a good idea, and that it should be included in default Trac installations. It is easily added to a custom site_css.cs if you feel that it is desirable for your own Trac installation.

comment:5 by Manuzhai, 20 years ago

Why would this not be a good idea?

comment:6 by Mark Rowe, 20 years ago

In my opinion it is up to the browser to determine when the scrollbar is to be displayed. Having a scrollbar visible and enabled but not scrollable is bad. That is why many browsers choose to hide the scrollbar. If you would rather that the scrollbar remained visible in those circumstances I would suggest that you take it up with the developers of the browser.

comment:7 by Christopher Lenz, 20 years ago

Resolution: wontfix
Status: newclosed

Agree with mrowe. If you want this for your Trac deployment, just add the CSS there.

comment:8 by Matthew Good, 19 years ago

Milestone: 0.9

in reply to:  description comment:9 by gigaloom, 18 years ago

Thank you so much!!!!!!!!! It has been a great annoyance to me too when the pages shift because of the scrollbar. I think this is an EXCELLENT solution.

comment:10 by colemanc@…, 18 years ago

Juse add this code to your style sheet:

body { overflow-y: scroll; }

That will display the vertical scroll bar regardless of whether or not your page extends beyond the viewable window. The other option (that I have not tried) would be to detect the browser and applying "padding-right: 14px;" to the html body. You can play with that number - that's just a guess.

I would much prefer a disabled scroll bar than a page that constantly jumps from right to left. I think this is a cleaner solution than the one proposed earlier (with the "min-height" setting).

in reply to:  10 comment:11 by Manuzhai, 18 years ago

Replying to colemanc@colemanesolutions.com:

I would much prefer a disabled scroll bar than a page that constantly jumps from right to left. I think this is a cleaner solution than the one proposed earlier (with the "min-height" setting).

I would agree, but that doesn't work in IE 6. My solution does.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.