all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Huge gap between fringe and scroll-bar
Date: Mon, 01 Jan 2007 13:46:44 +0100	[thread overview]
Message-ID: <459902B4.4080407@swipnet.se> (raw)
In-Reply-To: <m2zm93rwzc.fsf@sl392.st-edmunds.cam.ac.uk>

Leo skrev:
> Emacs's native scroll-bar (--without-toolkit-scroll-bars) can have a
> huge gap between fringe and scroll-bar. To see this:
> 
>   emacs -Q -l sb.el
> 
> Where sb.el has:
> ,----[ sb.el ]
> | (setq initial-frame-alist
> |       '((scroll-bar-width . 10)))
> `----
> 
> As you can see the gap between the fringe and scroll-bar is close to
> 8 pixels. I see no gap for gtk scroll-bar though.

The scroll bar width for the scroll bars are constrained to be equal to an
even character width.  So if you say scroll bar width 10, it is padded to an
even character width.  The GTK scroll bar is also padded, but it divides the
padding evenly at the left and right side of the scroll bar.  You can clearly
see this if you run Emacs with a different background, like

% emacs -bg gray50 -Q -xrm 'Emacs.scrollBarWidth: 10'

and then change the character size to different sizes (use the font menu at
Shift-Mouse-1 for example).

> 
> BTW, can I set scroll-bar width in X resource file?
> 

See above.

	Jan D.

  reply	other threads:[~2007-01-01 12:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-01  8:07 Huge gap between fringe and scroll-bar Leo
2007-01-01 12:46 ` Jan Djärv [this message]
2007-01-01 18:02   ` Leo
2007-01-01 18:56     ` Jan Djärv
2007-01-02  1:15       ` Leo
2007-01-02  9:45         ` Jan Djärv
2007-01-02  3:10     ` Richard Stallman
2007-01-02  4:21       ` Leo
2007-01-02  4:31         ` Nick Roberts
2007-01-02  4:47           ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=459902B4.4080407@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.