Jump to content

Remove borders from window


hm5161

Recommended Posts

I try to show a new window/form without borders. Did the following:

 

function window.beforerender(sender,eOpt)

{

Ext.apply(

sender,

{

border:false,

bodyPadding: 0,

padding: 0,

margin:0,

baseCls: '',

frame: false,

maximizable: false,

resizable:false

});}

 

and:

 

function window.afterrender )sender,eOpt)

{

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

Ext.get(sender.id).el.setStyle("margin",0);

}

 

This still leaves a white border on the right and bottom, aprox. 10pix

 

Anyone any idea how completely get rid of the borders??

 

Thnx

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Thnx, but:

 

Unfortunaly no luck. White space/borders right and bottom still present.

 

I have a single panel on a form with align = client. Borders on window indeed disapear but the panel is 10px smaller then the window.

 

The 10px are on the right and bottom size. If a use a use a padding of 5px the panel is in the middle of the window again (logic of course)

 

So it seems that the panel is always calculated 10px smaller then the window.

 

regards

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...