Jump to content

Change LayoutConfig.Flex at runtime


arilotta

Recommended Posts

UniPanel1.JSInterface.JSCall('updateLayout', []);
...
UniPanel3.JSInterface.JSCode(#1'.setConfig({flex:1});');
...
UniPanel1.JSInterface.JSCall('updateLayout', []);

 

updateLayout for parent panel:

  UniPanel2.layoutconfig.Flex:=1;
  UniPanel2.JSInterface.JSCode(#1'.setConfig({flex:1});');
  UniPanel1.JSInterface.JSCall('updateLayout', []); // UniPanel1 <----------
Link to comment
Share on other sites

  • 4 years later...
On 8/21/2018 at 11:56 AM, Sherzod said:

Try this:

UniPanel2.layoutconfig.Flex:=1;
UniPanel2.JSInterface.JSAssign('flex', [1]);
UniPanel1.JSInterface.JSCall('doLayout', []);

Hi,

with Layout Column does not work change ColumnWidth

UniPanel4.layoutconfig.ColumnWidth := 0.5; 
UniPanel4.JSInterface.JSCode(#1'.setConfig({ColumnWidth :0.5});');

UniPanel3.JSInterface.JSCall('updateLayout', []); //Panel with Layout = 'column'

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...