Jump to content

FormBorder


mierlp
 Share

Recommended Posts

Hi,

 

I design my form like FORM2.PNG and within my form i set :

 

My formStyle = Normal

My BorderStyle = None

 

I use :

ClientEvents -> UniEvents with this code to prefend resizing :

 

Function window.beforeInit(sender, config)

{

  sender.resizable = false;

}

 

 

I use :

ClientEvents -> ExtEvents with this code :

 

function Windows.afterrender(sender, eOpts)

{

   ext.get(sender.id.el.setStyle("padding", 0);

   ext.get(sender.id.el.setStyle("border-width", 0);

   ext.get(sender.id.el.setStyle("border-right", 0);

   ext.get(sender.id.el.setStyle("border-bottom", 0);

}

 

 

FORM1.PNG shows you the form in runtime en see the gap between

the right top panel and the form border.

 

How to get rit of this gap that the top right corner just looks like the left top

post-510-0-78547700-1429107966_thumb.png

post-510-0-19089100-1429108457_thumb.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.

 Share

×
×
  • Create New...