* bug#2546: NS: toolbar height miscalculated
@ 2009-03-02 23:24 David Reitter
0 siblings, 0 replies; only message in thread
From: David Reitter @ 2009-03-02 23:24 UTC (permalink / raw
To: emacs-pretest-bug
[-- Attachment #1.1: Type: text/plain, Size: 982 bytes --]
With a CVS version (--with-ns):
Emacs -Q
click on button in top right corner to show toolbar
C-x 5 2
--> I get what's shown in the screenshot - the window content is shown
too low.
I experimented a bit with setting the toolbar height correctly in
update_frame_toolbar() like this:
EmacsView *view = FRAME_NS_VIEW (f);
NSWindow *window = [view window];
FRAME_NS_TOOLBAR_HEIGHT (f) =
NSHeight ([window frameRectForContentRect: NSMakeRect (0, 0, 0,
0)])
- FRAME_NS_TITLEBAR_HEIGHT (f);
and then updating the toolbar from x_set_window_size(), but that
didn't do the trick. Given that the toolbar is assumed to be much too
large, maybe the problem isn't even in x_set_window_size.
I suspect it is the same "general bug" that causes further issues when
the toolbar height is assumed to be too short (from reading the
source, probably 32 pixels) and when the toolbar is actually higher
(due to other configuration in a more complex scenario).
[-- Attachment #1.2: pastedGraphic.png --]
[-- Type: image/png, Size: 27211 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-02 23:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 23:24 bug#2546: NS: toolbar height miscalculated David Reitter
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.