Tokay Posted December 12, 2021 Share Posted December 12, 2021 Hi! I know about the UniMainModule -> ConstrainForms = True, it constrain form position for all fourth sides. Actuall mostly issue side is the top of the window and other sides contrains more interfere than help. Does it possible to add constrain form only for the top side of window? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 12, 2021 Share Posted December 12, 2021 1 hour ago, Tokay said: I know about the UniMainModule -> ConstrainForms = True, it constrain form position for all fourth sides. Actuall mostly issue side is the top of the window and other sides contrains more interfere than help. Does it possible to add constrain form only for the top side of window? Hello, Maybe this config suits you? function window.beforeInit(sender, config) { config.constrainHeader=true; } 1 Quote Link to comment Share on other sites More sharing options...
Tokay Posted December 12, 2021 Author Share Posted December 12, 2021 It's better, thank you! Quote Link to comment Share on other sites More sharing options...
Tokay Posted December 13, 2021 Author Share Posted December 13, 2021 Please add if possible in the future release option like UniMainModule -> ConstrainForms = True, but with config.constrainHeader=true. It seems that this feature is neceseery for all forms, but there are no possibility to add it globally on the app to all forms. Quote Link to comment Share on other sites More sharing options...
Kos Posted December 14, 2021 Share Posted December 14, 2021 13 hours ago, Tokay said: but there are no possibility to add it globally on the app to all forms. MainForm.Script add this: Ext.window.Window.override({constrain:true}); Quote Link to comment Share on other sites More sharing options...
Tokay Posted December 14, 2021 Author Share Posted December 14, 2021 This is not what I needed, but Ext.window.Window.override({constrainHeader:true}); done the things! Many thanks!!! 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.