bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frame-pixel-(width|height) is incorrect


From: David Reitter
Subject: Re: frame-pixel-(width|height) is incorrect
Date: Fri, 21 Dec 2007 10:46:12 +0000

On 21 Dec 2007, at 09:17, Jason Rumney wrote:

Drew Adams wrote:
emacs -Q

I've checked the pixel size of Emacs frames with a couple of tools on
Windows, and these functions both return incorrect results:
frame-pixel-width, frame-pixel-height.

They return results consistent with their documentation.

frame-pixel-width is correct in the Carbon port.

frame-pixel-height returns a value that is too low, as it doesn't contain the title bar. This seems consistent across the platforms, from what I hear, but it is annoying nevertheless.

The documentation reads:

"This counts only the height available for text lines, not menu bars on window-system Emacs frames."

If you count the tool-bar as "available for text lines", and the title bar as part of the non-existant menu bar (on my system), then that is indeed correct.

So, either way, it would be useful to have the full height of a frame. Consider that (frame-parameter nil 'top) returns the position of the top edge, and not the y ordinate of the location where text could potentially be displayed in the frame.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]