all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#75053: Xwidget widgets shorter than the window height do not scroll correctly
@ 2024-12-23 19:49 JD Smith
  0 siblings, 0 replies; only message in thread
From: JD Smith @ 2024-12-23 19:49 UTC (permalink / raw)
  To: 75053

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






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-23 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-23 19:49 bug#75053: Xwidget widgets shorter than the window height do not scroll correctly JD Smith

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.