i2u4ever Posted October 26, 2018 Posted October 26, 2018 Create new uniGUI Application, complie and run. At the browser, 127.0.0.1:8077 and see view-source of it. In this source, you can see <style type="text/css">.x-viewport > .x-body {position:relative !important;}</style> <style type="text/css">body {overflow-y: hidden !important;}</style> This may be default. How to remove or clear the body style, <style type="text/css">body {overflow-y: hidden !important;}</style> I use FMSoft_uniGUI_Complete_Professional_1.50.0.1480.exe Quote
Sherzod Posted October 26, 2018 Posted October 26, 2018 Hello, As a workaround, try for now (and need to analyze why it is added...) MainForm -> Script: document.getElementsByTagName('head')[0].childNodes.forEach(function(el){if (el.tagName=="STYLE" && el.innerHTML=="body {overflow-y: hidden !important;}") el.innerHTML=""}); Quote
i2u4ever Posted October 28, 2018 Author Posted October 28, 2018 Thanks, it works fine. And I want to make the Browser scroll(vertical). Which is better? (1) UniServerModule->CustomCSS->Add : body {overflow-y:scroll !important;} (2)MainForm->Script->Add : document.getElementsByTagName('head')[0].childNodes.forEach(function(el){if (el.tagName=="STYLE" && el.innerHTML=="body {overflow-y: hidden !important;}") el.innerHTML="body {overflow-y: scroll !important;}"}); Either CSS or Script works fine. Browser scrolls vertical. Which is better? Quote
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.