Jump to content

LayoutConfig Height / Width Properties?


Aggie85

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...