Form ClientHeight ignores main menu height
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
When you have a form with a main menu and you set ClientHeight, the main menu height is ignored and thus the resulting form height is too small.
In Win32, the main menu height is considered for ClientHeight. All widgetsets should behave the same way in this respect.
Steps to reproduce:
See the attached project. If you compile and run it under Win32, you will see the whole panel. If you compile and run under Gtk2, the panel is partly hidden because the form height is not big enough (the hidden height is exactly the main menu height).
Additional information:
I came across this issue when working on auto-sized Lazarus IDE main window: http://bugs.freepascal.org/view.php?id=27940
Mantis conversion info:
- Mantis ID: 28036
- OS: Linux
- Platform: Gtk2
- Version: 1.5 (SVN)