ldb68 Posted March 27, 2014 Posted March 27, 2014 I need to hide/remove the form border (the 5 pixel default theme). I tried all combination without success. Somebody has a solution? thanks Quote
Sherzod Posted March 27, 2014 Posted March 27, 2014 Hi you can so: MainForm -> ClientEvents -> ExtEvents -> add window.afterrender Try function window.afterrender(sender, eOpts){ Ext.get(sender.id).el.setStyle("padding", 0); Ext.get(sender.id).el.setStyle("border-width", 0); } Sincerely 1 Quote
ldb68 Posted March 27, 2014 Author Posted March 27, 2014 Hi you can so: MainForm -> ClientEvents -> ExtEvents -> add window.afterrender Try function window.afterrender(sender, eOpts){ Ext.get(sender.id).el.setStyle("padding", 0); Ext.get(sender.id).el.setStyle("border-width", 0); } Sincerely Wow. You are a MASTER. I had not found an answer on the forum Sencha. Bother you with another javascript question . I have a "panel" on form with resizing activated. I would like to hide the frame displayed when move on the panel's border. The Sencha forum tell me to bind a "resizer" to the panel : --> http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/resizer/basic.html var transparent = Ext.create ('Ext.create', 'Ext.resizer.Resizer', { Target: 'idpanel', minWidth: 50, minHeight: 50, preserveRatio: true, transparent: true }); How can implement it in UniGui? Again THANK YOU VERY MUCH PS: as described here I can modify the css but is not an elegant solution http://dev.sencha.com/playpen/docs/output/Ext.Resizable.html 1 Quote
literal Posted April 29, 2017 Posted April 29, 2017 Remove with radius border on the corners use code below function window.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("-webkit-border-radius", 0); Ext.get(sender.id).el.setStyle("-moz-border-radius", 0); Ext.get(sender.id).el.setStyle("border-radius", 0); } 1 Quote
Fábio Matte Posted January 8, 2018 Posted January 8, 2018 (edited) Good morning, I can not remove the wedding form from the login form. I put in the FormLogin> ClientEvents> ExtEvents the following code: function window.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 ("- webkit-border-radius", 0); Ext.get (sender.id) .el.setStyle ("- moz-border-radius", 0); Ext.get (sender.id) .el.setStyle ("border-radius", 0); } BorderStyle = bsNone BorderIcons = [] And then in my URLFrames> ClientEvents> ExtEvents: function 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 ("- webkit-border-radius", 0); Ext.get (sender.id) .el.setStyle ("- moz-border-radius", 0); Ext.get (sender.id) .el.setStyle ("border-radius", 0); } But the edges of the image do not come out. Has anyone faced this problem? I have tested the tips here from the forum, but I can not remove the borders. Edited January 8, 2018 by fabiomatte Quote
Sherzod Posted January 8, 2018 Posted January 8, 2018 Hi, Which edition and build are you using? Best regards, Quote
irigsoft Posted January 8, 2018 Posted January 8, 2018 I have same problem. Edition: Profesional Ver.: 1421 If Form.AligmentControl is uniAlignmentClient evereting is OK but if is uniAlignmentServer .... Quote
Sherzod Posted January 8, 2018 Posted January 8, 2018 Hi, Can you make a simple testcase for this ?! Best regards, Quote
Sherzod Posted January 8, 2018 Posted January 8, 2018 And please specify once again where you have a problem. Quote
irigsoft Posted January 8, 2018 Posted January 8, 2018 I use example of fabiomatte with afterrender function with different Form.AligmentControl with uniAlignmentClient evereting is OK, no Form border. with uniAlignmentServer, then I get fabiomatte Image example. I want to use uniAlignmentServer and no Form border. Quote
irigsoft Posted January 11, 2018 Posted January 11, 2018 I have test case and found a problem. When ServerModule.MainFormDisplayMode = mfWindow and MainForm.WindowState = wsMaximized and Background Image is used a problem ocure. I dont know how to Upload Test project. Quote
Sherzod Posted January 11, 2018 Posted January 11, 2018 MainForm -> AlignmentControl -> uniAlignmentClient Quote
irigsoft Posted January 11, 2018 Posted January 11, 2018 I have tryed with some settings but when i Use this: uniPanel.Align = []; // alTop = False, alLeft = False, alRight = False, alBottom = False. and MainForm -> AlignmentControl -> uniAlignmentClient then i get this: and when MainForm -> AlignmentControl -> uniAlignmentServer this: different way to positining. The problem is not a BIG I just declare it 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.