unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: ynyaaa@gmail.com
Cc: 46464-done@debbugs.gnu.org
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	[thread overview]
Message-ID: <83blcj970c.fsf@gnu.org> (raw)
In-Reply-To: <83o8gl9w4k.fsf@gnu.org> (message from Eli Zaretskii on Mon, 15 Feb 2021 17:41:15 +0200)

> Date: Mon, 15 Feb 2021 17:41:15 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 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 "<svg width=\"%g\" height=\"%g\"
> >  version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">
> > <rect x=\"%g\" y=\"%g\" width=\"%g\" height=\"%g\" stroke=\"%s\"
> >  stroke-width=\"%g\" fill=\"grey\"/>
> > </svg>" 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.





      reply	other threads:[~2021-02-16 18:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12 15:11 bug#46464: 27.1; wide images are hidden partially at the right edge of window ynyaaa
2021-02-13 13:01 ` Eli Zaretskii
2021-02-14 14:30   ` ynyaaa
2021-02-14 16:10     ` Eli Zaretskii
2021-02-15 13:40       ` ynyaaa
2021-02-15 15:41         ` Eli Zaretskii
2021-02-16 18:56           ` Eli Zaretskii [this message]

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=83blcj970c.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=46464-done@debbugs.gnu.org \
    --cc=ynyaaa@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 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).