Edgewall Software

Ticket #1050 (closed defect: wontfix)

Opened 4 years ago

Last modified 2 years ago

Make browsing pages more consistent

Reported by: mail@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.8
Severity: trivial Keywords:
Cc: manuzhai@…

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

Change History

  Changed 4 years ago by mail@…

Use the right email-address...

  Changed 4 years ago by Juanma Barranquero

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...

  Changed 4 years ago by anonymous

  • cc manuzhai@… added

  Changed 4 years ago by mrowe

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.

  Changed 4 years ago by Manuzhai

Why would this not be a good idea?

  Changed 4 years ago by mrowe

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.

  Changed 4 years ago by cmlenz

  • status changed from new to closed
  • resolution set to wontfix

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

  Changed 3 years ago by mgood

  • milestone 0.9 deleted

in reply to: ↑ description   Changed 2 years ago by gigaloom

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.

follow-up: ↓ 11   Changed 2 years ago by colemanc@…

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   Changed 2 years ago by Manuzhai

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.

Add/Change #1050 (Make browsing pages more consistent)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.