jahlxx Posted October 14, 2016 Share Posted October 14, 2016 Hi. How can I control the screen resize in run-time? I can't find a sample that can clarify me the usage of onscreen resize. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 14, 2016 Share Posted October 14, 2016 Hi, MainForm -> onScreenResize event ..? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 14, 2016 Author Share Posted October 14, 2016 Yes, I'm trying, but can't control when a screen in changes from portrait to landscape. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 14, 2016 Author Share Posted October 14, 2016 maybe in uniservermodule, set mainform to mfpage? I'm trying too, but get the error: O0.el is undefined. any idea? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 14, 2016 Share Posted October 14, 2016 For mobile.. ? If so, can you try this?: MainmForm -> ClienEvents -> ExtEvents -> function window.orientationchange: function window.orientationchange(eOpts) { } Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 14, 2016 Author Share Posted October 14, 2016 Ok. DD, I'll test your solution later, thanks. Changing mainform to mfpage, the error was for this, in the onshow of the mainform. UniSession.AddJS(WebForm.JSName + '.el.setStyle({"border": "solid 5px #2B3610"});'); Removing this line, it works as I need, but I lose the form border, it's caption, etc. Any Idea? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 17, 2016 Author Share Posted October 17, 2016 Any way to force form border and caption when form is mfpage? 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.