Lazarus 1.2 Form resizing error (Linux) lazarus / 1-Linux ---------------------------------------------------------------------- JD · 2014-03-18 09:35 Hi there, I just realized that in design mode, the form always shrinks to its default size whenever one is placing controls on it. So after each control is placed on the form, one has to manually resize the form. This only seems to occur in Linux. Any ideas how to solve this problem? Thanks, JD ---------------------------------------------------------------------- zeljko · 2014-03-18 11:08 I've spotted that problem with gtk2 ide only and only on Linux Mint Cinnamon. What is your distro and window manager ? ---------------------------------------------------------------------- JD · 2014-03-18 12:39 Quote from: zeljko on March 18, 2014, 12:08:17 pmI've spotted that problem with gtk2 ide only and only on Linux Mint Cinnamon. What is your distro and window manager ? Linux Mint 16 32-bit / Cinnamon 2.0 ---------------------------------------------------------------------- zeljko · 2014-03-18 14:01 So it's problem with newest mint window manager Mutter. ---------------------------------------------------------------------- JD · 2014-03-18 15:34 Quote from: zeljko on March 18, 2014, 03:01:35 pmSo it's problem with newest mint window manager Mutter. Are you using Mint? If so how did you get around the problem? ---------------------------------------------------------------------- BigChimp · 2014-03-18 15:36 @JD: zeljko committed a fix to trunk Lazarus: http://svn.freepascal.org/cgi- bin/viewvc.cgi?view=revision&root=lazarus&revision=44459 ---------------------------------------------------------------------- JD · 2014-03-18 16:33 Quote from: BigChimp on March 18, 2014, 04:36:07 pm@JD: zeljko committed a fix to trunk Lazarus: http://svn.freepascal.org/cgi- bin/viewvc.cgi?view=revision&root=lazarus&revision=44459 Thanks BigChimp. So I guess I just need to replace the old qtobject.inc file on my system with this one? Lots of thanks to zeljko for his good work too. ---------------------------------------------------------------------- zeljko · 2014-03-18 18:39 Quote from: BigChimp on March 18, 2014, 04:36:07 pm@JD: zeljko committed a fix to trunk Lazarus: http://svn.freepascal.org/cgi- bin/viewvc.cgi?view=revision&root=lazarus&revision=44459 @BigChimp, that patch is for qt lcl not for gtk2. Qt didn't have problems with window sizes, only gtk2. Anyway, I'll try to fix that ugly behaviour for gtk2 too during weekend. ---------------------------------------------------------------------- JD · 2014-03-18 21:57 Quote from: zeljko on March 18, 2014, 07:39:22 pmQuote from: BigChimp on March 18, 2014, 04:36:07 pm@JD: zeljko committed a fix to trunk Lazarus: http://svn.freepascal.org/cgi- bin/viewvc.cgi?view=revision&root=lazarus&revision=44459 @BigChimp, that patch is for qt lcl not for gtk2. Qt didn't have problems with window sizes, only gtk2. Anyway, I'll try to fix that ugly behaviour for gtk2 too during weekend. Much appreciated Zeljko. I'll wait for your fix. Thanks a million. ---------------------------------------------------------------------- BigChimp · 2014-03-20 10:04 @zeljko, sorry, was a bit too optimistic there, I suppose... ---------------------------------------------------------------------- JD · 2014-03-25 09:00 @zeljko have you found the time to write a fix for gtk2. Thanks. ---------------------------------------------------------------------- JD · 2014-03-29 10:25 Any news? ---------------------------------------------------------------------- zeljko · 2014-03-29 13:24 Quote from: JD on March 29, 2014, 11:25:07 amAny news?  No, and not sure that it will be an easy fix since gtk2 sizing code in gtk2-lcl is pretty big mess. I've tried last weekend to debug it but could not find solution.Problem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size. ---------------------------------------------------------------------- Rails · 2014-03-29 14:52 Quote from: zeljko on March 29, 2014, 02:24:54 pmProblem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size. [/quote] Sounds like a Mutter user should file a bug report. ---------------------------------------------------------------------- zeljko · 2014-03-29 16:43 Quote from: Rails on March 29, 2014, 03:52:26 pmQuote from: zeljko on March 29, 2014, 02:24:54 pmProblem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size. Sounds like a Mutter user should file a bug report. [/quote] No, qt-lcl works fine. I think that problem is in our gkt2-lcl sizing code which use non- standard way of sizing handles . We use cached sizing and that probably causes problem. Basically, our gtk2-lcl implementation have problem with any compositing window manager (eg. compiz), but this one is ugliest ---------------------------------------------------------------------- JD · 2014-04-09 17:06 Quote from: zeljko on March 29, 2014, 05:43:54 pmNo, qt-lcl works fine. I think that problem is in our gkt2-lcl sizing code which use non- standard way of sizing handles . We use cached sizing and that probably causes problem. Basically, our gtk2-lcl implementation have problem with any compositing window manager (eg. compiz), but this one is ugliest Is there anything one can do to stop this annoying behaviour that makes working with large forms very difficult? ---------------------------------------------------------------------- zeljko · 2014-04-09 19:05 Quote from: JD on April 09, 2014, 07:06:12 pmIs there anything one can do to stop this annoying behaviour that makes working with large forms very difficult? I'm afraid not atm.You can use qt-lcl since it works ok. ---------------------------------------------------------------------- ADBBingo · 2014-04-23 17:46 I am running the same build (32 bit Mint w Cinnamon) and have found at least a partial work-around.  If you hold down you can 'dock' the form editor window to the right side (or whatever side you want) of the desktop, and it will not be resized.  It forces you to have the form be the total height of the screen, but you can control the width.  Before you compile, you can then resize the form to your liking.  Not perfect, but it beats having the form window shrink down to tiny when you click on the component bar. ---------------------------------------------------------------------- allanregistos · 2014-08-07 03:32 I also have this resizing problem in Linux. I am on Ubuntu GNOME 3.12/64-bit. Here's the video that shows the problem: https://www.youtube.com/watch?v=ZGYIZD2SIi0