Could you use a TPanel in place of the TBevel? I tried that and it gives the same visual effect without the size problems. But I don't know what you are doing with the TBevel.
On Mon, Nov 11, 2013 at 12:20 AM, Avishai <[email protected]> wrote: > Well? I forgot that I had set Constraints.MaxHeight:= 24 before I set b > orderSpacing.Around:= 4. Then I changed MaxHeight:= 20 and it went back > to Height:= 50. > > Then I reset MaxHeight:= 24 and borderSpacing.Around:= 0 and it jumped > back to a height of 24. I don't think that's an answer. I'll keep looking. > > > On Mon, Nov 11, 2013 at 12:09 AM, Avishai <[email protected]> wrote: > >> Hmmm. I tried setting TBevel .borderSpacing.Around:= 4 and it suddenly >> "corrected" itself. I'm not too sure I trust that approach but you can >> play with it and see. >> >> >> On Mon, Nov 11, 2013 at 12:01 AM, Valdas Jankūnas <[email protected]>wrote: >> >>> 2013.11.10 23:03, Avishai rašė: >>> >>> You can also use Constraints to set height/width of children with >>>> ChildSizing. >>>> >>> >>> Forgot about that, thanks. >>> >>> One problem left: when you add TBevel as child and if you want it >>> BorderSpacing.CellAlignVertical=ccaFill (to make separator), you get >>> fixed height (always 50). To fix this I must use custom TBevel with >>> overridden "CalculatePreferredSize" with "PreferredHeight := 1;" in it. >>> >>> Is there more elegant way? >>> >>> >>> -- >>> Valdas Jankūnas >>> >>> -- >>> _______________________________________________ >>> Lazarus mailing list >>> [email protected] >>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >> >> >> >> -- >> Shalom, >> Avishai >> [email protected] >> אבישי גוֹר >> > > > > -- > Shalom, > Avishai > [email protected] > אבישי גוֹר > -- Shalom, Avishai [email protected] אבישי גוֹר
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
