stas Posted November 9, 2014 Posted November 9, 2014 Hello How to unset config property For Example procedure TMyContainer.LoadCompleted; begin inherited; JsCode('width:undefined'); end; But in generated code a see O35=new Ext.MyContainer({width:undefined,width:200}); Where in my component I write JsCode('width:undefined'); Thank you Quote
stas Posted November 9, 2014 Author Posted November 9, 2014 Yes!!! IgnoreWidth IgnoreHeight IgnoreTop IgnoreLeft IgnorePosition Quote
mhmda Posted November 9, 2014 Posted November 9, 2014 Why do you want to do something like that ?? you can't "unset" property, even if there is no with the browser will use its' default value for width. **** Our main Problem as developers is: **** We all (or most of us) came from windows programming background and we expect web programming same as windows and here we get ourselves into problems that we can't solve, so I suggest you (myself first) to refer to basic web programming (client/server), html (post,get,update,delte...), css styling, js and so on. unigui can't resolve any problem that related to understanding how web app is working and we try to do something without even knowing the consequences of this. Anyway this is a CSS property and when changing width/height... you can override extjs main class, or just create a new class and set any thing you want, for example if you want to change a label/container/panel... width you may use this code: 1. At servermodule-->customcss: .mylabel { width: 100px !important;//you have to use the !important otherwise it wont work width: 50% !important;//other way to use width } 2. in label or any component-->extevents-->added (event): function added(sender, container, pos, eOpts) { sender.addCls('mylabel'); } 1 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.