[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small gaps beside the scrollbar

From: akarl
Subject: Re: Small gaps beside the scrollbar
Date: Tue, 19 Jul 2005 15:13:12 +0200
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

Jan D. wrote:

In order to make resizing consistent, Emacs keeps the scroll bar at the same width as the character width.

Can't see how the scrollbar with can be a problem. Ok, Emacs let's the user resize the window (contents of the window) in character units, but a (GNOME) window can have *any* size.

Any window can have any size. But to resize in character units you must impose some restrictions. On the X11 level it is not that hard to make the scroll bar have different width. Internally in Emacs it is harder, as there are places that convert to/from pixels simply by multiplying by the column width.

But the GTK scroll bars have a fixed width, which only sometimes are the same width as the Emacs character width. Therefore there are gaps.

This is not specific to Emacs compiled with GTK support. The standard X Windows scrollbar has the same problem.

The Emacs internal (i.e. non-toolkit) scroll bar does not have this problem, but GTK, Xaw and Lesstif/Motif does.

If I understand correctly, you say that (with the scrollbar to the left) the distance between the right edge of the left window border and the left edge of the left fringe, which the scrollbar occupies, must be (evenly) divisible by the character width. I don't understand what causes this restriction when Emacs is not run in console mode.

Of course the issue has no practical significance, but it sure looks like a bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]