Aggie85 Posted June 12, 2022 Share Posted June 12, 2022 Howdy All! Is it possible to use CSS calc() function in setting the Height / Width of an object? That is, if I have two TUniPanels in a TUniContainer, one panel with a fixed height in pixels, I would like the other panel's height to be CALC(100%-<Fixed Pixels Height>); All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2022 Share Posted June 12, 2022 Hello, Have you seen the related demos? \FMSoft\Framework\uniGUI\Demos\Desktop\Clientside Alignment - xx Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted June 12, 2022 Author Share Posted June 12, 2022 Howdy, I have been looking at several of your client-side demos and it took me a while to figure out an inconsistency in UniGui TLayoutAttributes when the Layout type is Absolute. If the Height is specified as a percentage (%), it is used. If the Height is specified in pixels, it uses the "Delphi" component Height property which makes it harder to use the designer. The only work around I have found when I need a fixed panel size, it to set it to set the panel(s) heights in the form's OnBeforeShow event. All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.