unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: JD Smith <jdtsmith@gmail.com>
To: 75053@debbugs.gnu.org
Subject: bug#75053: Xwidget widgets shorter than the window height do not scroll correctly
Date: Mon, 23 Dec 2024 14:49:32 -0500	[thread overview]
Message-ID: <246BB787-5C70-4943-BDC6-F10E41DFF880@gmail.com> (raw)

Xwidget widgets do not stay "in place" as the text they are placed in is scrolled, unlike images and other non-character-sized content.

To reproduced, create a new xwidget of a fixed pixel size that does not occupy the full window height:

(require 'xwidget)
(let ((xw (make-xwidget 'webkit "Test" (- (window-pixel-width) 20) 400)))
  (xwidget-webkit-goto-uri xw "https://www.gnu.org")
  (goto-char (point-max))
  (insert "\n\n\n" (propertize "     " 'display `(xwidget :xwidget ,xw)) "\n\nMORE STUFF BELOW\n"))

Scrolling in the buffer (even via simple (scroll-up/down N) calls), leads to displacement between the text and the widget itself, resulting in overlap.  I.e. the text scrolls, the widget does not.

This tends to resolve with more movement, but in a "jumping" fashion.

Tested on Emacs 29.4 NS and emacs-mac; similar behavior (though emacs-mac can partially scroll the image off-screen, unlike NS).






                 reply	other threads:[~2024-12-23 19:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=246BB787-5C70-4943-BDC6-F10E41DFF880@gmail.com \
    --to=jdtsmith@gmail.com \
    --cc=75053@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).