Jump to content

Magic spaces - how to avoid them?


elGringo

Recommended Posts

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

 

post-2378-0-14537200-1491394272_thumb.jpg

post-2378-0-06313600-1491394279_thumb.jpg

post-2378-0-04966400-1491394742_thumb.jpg

Link to comment
Share on other sites

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:

 

 aa11.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...