![]() ![]() ![]() This would be a good opportunity to find the elusive bug. Why don't you try to debug the IDE? Create a Debug IDE profile first, then run lazarus from inside lazarus. Quote maybe that's the case when WIDTH is not determined correctly at startup which causes HEIGHT to get 3 to 4 additional lines of components palette. Window manager is XFCE 4.10 Debian Jessie (both 32 and 64 bit). That explains why breaking after encountering provides a correct result (as number of lines is 1 regardless of WIDTH) Rearrange component palette into one line (but the height remains the same). Automatically determine window height (based on incorrect number of lines)ĥ. Component palette arranges elements into 4 or 5 lines.ģ. WindowManager tries to set Width of the Main WindowĢ. when I ask "Get Windowmanager to decide" for Main Window height&width the width is 566 instead of 1200 if "Restore window geometry" with "auto adjust".ġ. maybe that's the case when WIDTH is not determined correctly at startup which causes HEIGHT to get 3 to 4 additional lines of components palette.Į.g. Yes, that's the code (I'll post it here for convenience):Īnd the cycle continues then the result becomes incorrect. No, the component palette has no icons before it is populated. And triggers another re-calculation only if amount of component palette lines has changed. Quote -It looks like the TMainIDEBar.CalcMainIDEHeight tries to determine the IDEHeight before the components palette is populated. If you look at the code, it iterates the component icons and finds the biggest value.įor all relevant code please look for AutoAdjustIDEHeight and AutoAdjustIDEHeightFullCompPal in mainbar.pas. The IDE height fails only if both are checked. Quote from: Eugene Loza on October 13, 2016, 12:47:41 pm -Moreover, the "Automatically adjust IDE main window height" works perfectly if checked, but "Show complete components palette" is unchecked. It increases the height slichtly to 92 which is better, it has a small nice margin now.Ĭan the problem be caused by a window manager. "Let the windowmanager decide." shows wierd results :)ĭefault for "Main Menu" is "Restore Window Geometry" with value 83.įor me "Let the windowmanager decide" works. Quote from: Eugene Loza on October 13, 2016, 11:42:13 am -I've played a little with window size/position options (see attachment). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |