From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46464: 27.1; wide images are hidden partially at the right edge of window Date: Tue, 16 Feb 2021 20:56:03 +0200 Message-ID: <83blcj970c.fsf@gnu.org> References: <86zh09s4m9.fsf@gmail.com> <83wnvcceao.fsf@gnu.org> <86y2fqg1rw.fsf@gmail.com> <83h7mebpgc.fsf@gnu.org> <86pn11fnyv.fsf@gmail.com> <83o8gl9w4k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46464-done@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 16 19:57:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC5X6-0006eA-AS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 19:57:12 +0100 Original-Received: from localhost ([::1]:44686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC5X5-0001c3-B5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 13:57:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC5Wx-0001bS-07 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 13:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC5Ww-0002fj-Py for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 13:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC5Ww-00017j-OI for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 13:57:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Feb 2021 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46464 X-GNU-PR-Package: emacs Mail-Followup-To: 46464@debbugs.gnu.org, eliz@gnu.org, ynyaaa@gmail.com Original-Received: via spool by 46464-done@debbugs.gnu.org id=D46464.16135017644250 (code D ref 46464); Tue, 16 Feb 2021 18:57:02 +0000 Original-Received: (at 46464-done) by debbugs.gnu.org; 16 Feb 2021 18:56:04 +0000 Original-Received: from localhost ([127.0.0.1]:41549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5W0-00016U-AR for submit@debbugs.gnu.org; Tue, 16 Feb 2021 13:56:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5Vy-00015y-He for 46464-done@debbugs.gnu.org; Tue, 16 Feb 2021 13:56:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58149) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC5Vt-0002Tl-A5; Tue, 16 Feb 2021 13:55:57 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3246 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lC5Vs-0000gw-62; Tue, 16 Feb 2021 13:55:56 -0500 In-Reply-To: <83o8gl9w4k.fsf@gnu.org> (message from Eli Zaretskii on Mon, 15 Feb 2021 17:41:15 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200153 Archived-At: > Date: Mon, 15 Feb 2021 17:41:15 +0200 > From: Eli Zaretskii > Cc: 46464@debbugs.gnu.org > > > Evaluating the form below, four images are supposed to be displayed in > > the first visual line. But the fourth image is invisible. Similar for > > the second visual line. > > > > If ':margin 5' is replaced with ':margin 20', three images are displayed > > in the first to third visual lines. Third image in each visual line is > > truncated at the x-coordinate 20 pixels apart from the right edge of the > > window. It looks as if the image is not truncated and is small. > > > > (dotimes (i 10) > > (let* ((w 200) (h 30) (sw 6) > > (color (nth (% i 5) '("red" "green" "blue" "yellow" "orange"))) > > (svg (format " > version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"> > > > stroke-width=\"%g\" fill=\"grey\"/> > > " w h (/ sw 2) (/ sw 2) (- w sw) (- h sw) color sw))) > > (insert-image (create-image svg 'svg t :margin 5 :scale 1)))) > > I will look into this and see if this is a bug or intended behavior. I've looked at the code: it's deliberate. We truncate the image to fit within the window, but still leave the margins around it. So I don't see what else needed to be fixed here, and I'm closing this bug report.