meason Posted May 3, 2019 Share Posted May 3, 2019 How do I make runtime changes to the LayoutAttrib.pack and LayoutAttrib.align take effect? I have Delphi code to change them but it doesn't do anything. I read the above link but I have no idea of what to write to change the pack and align properties. Is there some documentation about how JSAssign / JSCall work and what properties they take, even if it's a reference to Sencha, that might help. Based on the above I tried: UniPanel8.LayoutAttribs.Pack := cbPack.Text; UniPanel8.LayoutAttribs.Align := cbAlign.Text; UniPanel8.JSInterface.JSCall('doLayout', []); Doing the above gives error O4B.doLayout is not a function _rsov_(O69,0);O4B.doLayout(); I'm currently on 1.90.0.1495 and ExtJS set to 6.7.0 Can someone point me in the right direction please? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2019 Share Posted May 3, 2019 2 minutes ago, meason said: UniPanel8.JSInterface.JSCall('doLayout', []); UniPanel8.JSInterface.JSCall('updateLayout', []); Quote Link to comment Share on other sites More sharing options...
meason Posted May 3, 2019 Author Share Posted May 3, 2019 updateLayout doesn't give errors but it also doesn't change the layout. Quote Link to comment Share on other sites More sharing options...
meason Posted May 6, 2019 Author Share Posted May 6, 2019 If anyone could point me in the right direction I'd love to create a sample app and contribute it back. I think it could be useful to make an app that could show changes dynamically and see them straight away instead of the change, compile, run cycle. 1 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.