Subject: bug#78418: 31.0.50; Change in fit-frame-to-buffer doesn't work with transient-posframe

From: martin rudalics <[email-masked]>
Date: Mon, 19 May 2025 16:38:12 +0200

> Could be this, maybe
 >
 > nsterm.m:
 >   7967   /* Restrict the new size to the text grid.
 >   7968
 >   7969      Don't restrict the width if the user only adjusted the height, and
 >   7970      vice versa.  (Without this, the frame would shrink, and move
 >   7971      slightly, if the window was resized by dragging one of its
 >   7972      borders.)  */
 >   7973   if (!frame_resize_pixelwise)
 >   7974     {
 >   7975       NSRect r = [[self window] frame];
 >   7976
 >   7977       if (r.size.width != frameSize.width)
 >   7978         {
 >   7979           frameSize.width =
 >   7980             FRAME_TEXT_COLS_TO_PIXEL_WIDTH  (*emacsframe, cols);
 >   7981         }
 >   7982
 >   7983       if (r.size.height != frameSize.height)
 >   7984         {
 >   7985           frameSize.height =
 >   7986             FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (*emacsframe, rows) + extra;
 >   7987         }
 >   7988     }
 >
 > in - (NSSize)windowWillResize:

Looks like it.  Does the edge "snap back" when you release the mouse
button in the middle of the "m"?  And the Haiku build does something
similar apparently.

martin