elGringo Posted April 5, 2017 Posted April 5, 2017 Alignig panels on mainform, but viewing magic spaces - how to avoid them (see pics)? used margins 0 -10 0 0 but no effect it must be simple - but have no idea except margins how to fix it (( also - wanted to do sticky top menu - I think to handle on scroll browser event - is it correct how do you think? to set top:=0 on scroll to pHeader in test case TestCase https://yadi.sk/d/KrpRtzdo3GgVmZ Quote
elGringo Posted April 5, 2017 Author Posted April 5, 2017 set to pHeader LayOutConfig 100% and whitespace from the right disappeared, but other ones still on th place Quote
mhmda Posted April 5, 2017 Posted April 5, 2017 This is not 'Magic' spaces it's the border of Window/Panel, you can use css to override this behavior or use 'border' = None from design view. Quote
elGringo Posted April 5, 2017 Author Posted April 5, 2017 hello, Mohhamed! but i already have BorderStyle=None Quote
elGringo Posted April 5, 2017 Author Posted April 5, 2017 set pFooter align to alNone - and disappeared for pFooter Quote
mhmda Posted April 5, 2017 Posted April 5, 2017 Here you go: MainForm->Unievents: function window.beforeInit(sender, config) { config.baseCls='frmNoBorderRadius'; config.cls='frmNoBorderRadius'; } CSS: .frmNoBorderRadius { border-radius: 0px !important; border: none !important; } .x-css-shadow { -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important; } Result: 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.