erich.wanker Posted October 13, 2014 Posted October 13, 2014 Hello, how can i disable the scroll-function of mainform... A simple " {overflow-x: hidden !important;}" hides the scrollbar - BUT the form still scrolls the content ... Example: MainformDisplayMode = mfPage; one unibutton1 on Mainform .. if i click the button -> uniForm1.showmodal; the UniForm has a left-Value of 3000; .. so the button of mainform is not visible - because the mainform-area scrolles 3000 pixels to the right- to show the UniForm1. i want to create the UniForm1 in a not visible area and the Mainform should be as it is .. without scrollbars and without move his content ... And suggestions? ThanX Quote
Sherzod Posted October 13, 2014 Posted October 13, 2014 Hi Erich.Can you attach a test case?Best regards. Quote
erich.wanker Posted October 14, 2014 Author Posted October 14, 2014 Hello, i made a little Testcase ... OnShow - i want to slideIn a UniForm OnClose - i want to slideOut a UniForm The MainForm should not show any Scrollbars and should not move the content.. ..the "OnClose" doesnt work correctly .. it should close the UniForm if the "animate"-Function is finally finished - but my javascript-knowledge is tiny ... ;-) ThanX for suggestions Erich test.zip Quote
Sherzod Posted October 15, 2014 Posted October 15, 2014 how can i disable the scroll-function of mainform... Hi Erich. Try this CSS in UniServerModule -> CustomCSS ...: .x-viewport, .x-viewport body { overflow: hidden !important; } Best regards. Quote
erich.wanker Posted October 15, 2014 Author Posted October 15, 2014 Hi Delphi Developer .. Thanx .. But: the 2 Buttons of the MainForm are the problem.. ... the buttons on Mainform scrolls to -3000px if you create a Uniform.left at +3000 px have you any idea how to tell mainform it should not move his content ? ThanX Sorry .. i forgot: THIS HAPPENS JUST IN CHROME BROWSER 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.