GNU bug report logs - #75053
Xwidget widgets shorter than the window height do not scroll correctly

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: JD Smith <jdtsmith@HIDDEN>; dated Mon, 23 Dec 2024 19:50:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Dec 2024 19:49:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 23 14:49:50 2024
Received: from localhost ([127.0.0.1]:58112 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tPoR3-00005S-TB
	for submit <at> debbugs.gnu.org; Mon, 23 Dec 2024 14:49:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:38358)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jdtsmith@HIDDEN>) id 1tPoR1-00005H-Bo
 for submit <at> debbugs.gnu.org; Mon, 23 Dec 2024 14:49:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jdtsmith@HIDDEN>)
 id 1tPoR1-0001PL-4J
 for bug-gnu-emacs@HIDDEN; Mon, 23 Dec 2024 14:49:47 -0500
Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <jdtsmith@HIDDEN>)
 id 1tPoQz-0005Dc-Kf
 for bug-gnu-emacs@HIDDEN; Mon, 23 Dec 2024 14:49:46 -0500
Received: by mail-qv1-xf2e.google.com with SMTP id
 6a1803df08f44-6d900c27af7so36401086d6.2
 for <bug-gnu-emacs@HIDDEN>; Mon, 23 Dec 2024 11:49:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734983384; x=1735588184; darn=gnu.org;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=2xOL4y9Uj7taMisSa6qGnN+pHL+GQuSOJCqTgNbLjc8=;
 b=EzrsVxQsFJuQjOzUG8Gkai0bz//hJsXIyTgR6QD/RPAF+ge4o8fGsC/DMajB2je4kb
 VarictRbosRcFSrweL4ye1bxocpZh9RUdYvM43zYM9OolKY7tJPgxdCF5aWPk5ZVQDbC
 H3jYaZfgrve8fYmelETDKD2WABsfkpaqP8N+/+l7Pe3+RNAzJ3MBk4L7XpsNwmVxCs34
 F7BrWNBXh1DUGT/zeLYANldd2n/qd39VwHxjP3MhfdpZ9lXaLd+dEMp4NS1vM/3ejJxt
 AX8ZVsOSaI5dWj8e1viNUUxj+kXUdLzPNYkesvWx3jkJk1KesE+3uonxPH0TQCilNik0
 s5Mg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734983384; x=1735588184;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=2xOL4y9Uj7taMisSa6qGnN+pHL+GQuSOJCqTgNbLjc8=;
 b=h+mYQMjvirCwKTspJr/Tg9xMloi5qAQDshREC+ouMAdt3uW4RXGb8n9XR0YCrQnd0H
 yAASYvPvCYK7hUpROQzLF5ZtI99ggFpMBRJnLHF+s/ZneBpvS+XxpVk42mOR1qMo+Iv7
 U2yzcAdL/RjcNV/1xRV7IezSOMskTR1l7+2TmGmoOrENuileolWkpN0sD2jrgcX7qDW4
 FyWIF0DF/XJnbyhUUMRE3YjGs2NKdAztIpSWaYBobpVc/HwRYrKf+58RKsudcIbt8+4v
 rH7/28PSAcenpi/KAP5xqtHJlpK+V2fqk9IIhnmRS60uFuFEhmdfTSi0jU3v08Y5EdWC
 0SGA==
X-Gm-Message-State: AOJu0YwZTR9FACLabiJTOA7L1Dlk0TDPudu+RgXpcs8mArbSdg+mG3Ih
 A1dRjwicHf1C6o2YYHrnrAdu5XU8SH0Cexn4nDgRfxfT6JIembRqf2GO2w==
X-Gm-Gg: ASbGncsUyXQF/LqNES7vYjU2lSqaVwjc0BJ8B7W6lvVTNwMUEVoFUYnY6OQGNsvRcws
 hIP7GI+qhxyRO8InJxwBOhUggksrZ6FOQo4we2ddks1DwTvdN5o+4xsVSPWXWdxNWSVYTjWW+ot
 Cevanh2yJLlp8kKlQusMN2V2Uwy1qp64Yp80w8/C9WLzWdTOE+BYDrhS2RIMhYEWx5MNPbmOMLj
 w040BKzSw0NsFrmGYhL4abzO2I6/O8pw6lGiYWfM3vNwVhw87h33KRXPBp9Knpdj2jR/5lEZASL
 7yqT/D5yJsZXZxwetqUSbYVBJhtO
X-Google-Smtp-Source: AGHT+IHA2YlIi0eZ6R+2X/nbsnD+zTQcYYpuqtMl538pXwb9NR1B5K+91RG2YND9Tb/PbpmK3fg6wg==
X-Received: by 2002:a05:6214:1244:b0:6d8:83bd:5cfb with SMTP id
 6a1803df08f44-6dd2330c6e5mr232320486d6.10.1734983383906; 
 Mon, 23 Dec 2024 11:49:43 -0800 (PST)
Received: from smtpclient.apple (cm-24-53-185-196.buckeyecom.net.
 [24.53.185.196]) by smtp.gmail.com with ESMTPSA id
 6a1803df08f44-6dd181c13b6sm45948566d6.96.2024.12.23.11.49.43
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 23 Dec 2024 11:49:43 -0800 (PST)
From: JD Smith <jdtsmith@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\))
Subject: Xwidget widgets shorter than the window height do not scroll correctly
Message-Id: <246BB787-5C70-4943-BDC6-F10E41DFF880@HIDDEN>
Date: Mon, 23 Dec 2024 14:49:32 -0500
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3826.300.87.4.3)
Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e;
 envelope-from=jdtsmith@HIDDEN; helo=mail-qv1-xf2e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

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





Acknowledgement sent to JD Smith <jdtsmith@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75053; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.