all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: j.pertres@gmail.com, 14324@debbugs.gnu.org
Subject: bug#14324: 24.3; GTK scrollbar doesn't scroll proportionally when Line Wrapping is set to "Truncate Long Lines"
Date: Wed, 02 Jun 2021 07:23:10 +0200	[thread overview]
Message-ID: <87h7igalhd.fsf@gnus.org> (raw)
In-Reply-To: <8335u122ho.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 01 Jun 2021 15:28:19 +0300")

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Thanks.  I don't see any issues with this.  I'm not on GTK, so maybe
> this is an issue with GTK scrollbars?

Just so we're on the same page, here's screenshots of the situation.


[-- Attachment #2: long1.jpg --]
[-- Type: image/jpeg, Size: 224823 bytes --]

[-- Attachment #3: Type: text/plain, Size: 34 bytes --]


This is without truncate-lines.


[-- Attachment #4: long2.jpg --]
[-- Type: image/jpeg, Size: 56783 bytes --]

[-- Attachment #5: Type: text/plain, Size: 80 bytes --]


With truncate-lines.  Note that the scroll bar has the same identical
length.


[-- Attachment #6: long3.jpg --]
[-- Type: image/jpeg, Size: 57206 bytes --]

[-- Attachment #7: Type: text/plain, Size: 533 bytes --]


And finally with the lines truncated for real -- note the longer scroll
bar.

So it seems to compute the length of the scroll bar based on the
non-truncated length of the text in the buffer.

> What happens if you customize the value of
> scroll-bar-adjust-thumb-portion?

Then it seems to adjust the height of the scroll bar logically (i.e.,
based on what's shown in the window, and not on the length of the
(truncated) text).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

  reply	other threads:[~2021-06-02  5:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 17:02 bug#14324: 24.3; GTK scrollbar doesn't scroll proportionally when Line Wrapping is set to "Truncate Long Lines" j.pertres
2013-05-09 19:33 ` Stefan Monnier
2021-05-31  6:03 ` Lars Ingebrigtsen
2021-05-31 15:28   ` Eli Zaretskii
2021-06-01  5:59     ` Lars Ingebrigtsen
2021-06-01 12:28       ` Eli Zaretskii
2021-06-02  5:23         ` Lars Ingebrigtsen [this message]
2021-06-02 12:10           ` Eli Zaretskii
2021-06-03  7:12             ` Lars Ingebrigtsen
2021-06-03  8:01               ` Eli Zaretskii
2021-06-03  8:11                 ` Lars Ingebrigtsen

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=87h7igalhd.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=14324@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=j.pertres@gmail.com \
    /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.