-
10 Feb 2009 7:14 PM #561
[IMPLEMENTED]
Class Ext.Panel
floating should be indicated as Mixed instead of Boolean. You can also specify an object which will then be used as a config object for Ext.Layer.
Perhaps:floating : Boolean Mixed
True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered (defaults to false). Note that by default, setting floating to true will cause the panel to display at negative offsets so that it is hidden -- because the panel is absolute positioned, the position must be set explicitly after render (e.g., myPanel.setPosition(100,100)
. Also, when floating a panel you should always assign a fixed width, otherwise it will be auto width and will expand to fill to the right edge of the viewport.
floating : Boolean Mixed
True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered (defaults to false). Note that by default, Setting floating to true will create an Ext.Layer for this panel and display the panel at negative offsets so that it is hidden -- because the panel is absolute positioned, the position must be set explicitly after render (e.g., myPanel.setPosition(100,100)
. Also, when floating a panel you should always assign a fixed width, otherwise it will be auto width and will expand to fill to the right edge of the viewport. This property may also be configured with an object to be used as the configuration object for the Ext.Layer (create link to Ext.Layer) that will be created.
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
11 Feb 2009 9:25 PM #562
[closed]
in reference to http://extjs.com/forum/showthread.php?t=59757:
in Ext.grid.GridPanel, the recent inclusion of the config property 'fieldLabel' states that when the grid is contained by a component using FormLayout, this property will instruct the container to render the grid as a form field, with the fieldLabel appearing to the side as other form fields are rendered.
there should be:
1. something in the text for this config property stating that it also requires the 'isFormField' configure option to be set to true
2. the config property 'isFormField' should be documented, as it is required to allow 'fieldLabel' to be used.
-
11 Feb 2009 10:41 PM #563Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
[closed]
It's much more complex than simply including isFormField:true! A BasicForm expects all kinds of methods to be present for a Component with isFormField:true.
So simply adding isFormField:true and a fieldLabel to a GridPanel will cause javascript errors in form processing.
ps. In Ext 3.0 simply adding a fieldLabel is enough, no need to set isFormField:true.
-
11 Feb 2009 11:43 PM #564
Method annotation error for Ext.Container.doLayout( [Boolean shallow] )
Method annotation error for Ext.Container.doLayout( [Boolean shallow] )
Hi All
I am new to ExtJS and I am not sure if the bug has been reported here or not. Below is what I find.
The current annotation for Ext.Container.doLayout( [Boolean shallow] ) in Ext 2.2 Api Documentation is shown below:
doLayout( [Boolean shallow] ) : void
Force this container's layout to be recalculated. A call to this function is required after adding a new component to an already rendered container, or possibly after changing sizing/position properties of child components.
Parameters:
shallow : Boolean
(optional) True to only calc the layout of this component, and let child components auto calc layouts as required (defaults to false, which calls doLayout recursively for each subcontainer)
Returns:
void
I think the annotation of the True & false vaule for the shallow parameter is reversed. It should be changed as follows:
shallow : Boolean
(optional) false to only calc the layout of this component, and let child components auto calc layouts as required (defaults to true, which calls doLayout recursively for each subcontainer)
Here is the source code in the class Ext.Container:
doLayout : function(shallow){
if(this.rendered && this.layout){
this.layout.layout();
}
if(shallow !== false && this.items){
var cs = this.items.items;
for(var i = 0, len = cs.length; i < len; i++) {
var c = cs;
if(c.doLayout){
c.doLayout();
}
}
}
},
You can see only when shallow == true makes the method start the recursion to subcontainers.
[i]And the word "shallow" also confuse me a little bit. I think using "deep" may be more appropriate if what I'd written above is correct.
Thanks!
-
12 Feb 2009 12:00 AM #565
I think it's fine, the intent is clear and it's explained well.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
12 Feb 2009 11:00 AM #566
Please check if the config options indicated here
http://extjs.com/deploy/dev/docs/?cl...data.HttpProxy
are valid
Additional discussion here:
http://extjs.com/forum/showthread.ph...721#post287721MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
12 Feb 2009 11:09 AM #567
Yes, it's correct as written. You misunderstand the difference betweeenYou can see only when shallow == true makes the method start the recursion to subcontainers.
andCode:shallow !== false
Code:shallow == true
Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
12 Feb 2009 5:06 PM #568
Annotation of Ext.Container.doLayout()
Annotation of Ext.Container.doLayout()
Hi evant
Do you think the API's annotation need to be changed or not? Sorry my English is not very good and I can not tell from your reply if you agree with me or not.
Hi All
Let me explain my opinion in another way.
When I call doLayout(true) or doLayout() on my toplevel container, such as an Ext.Window, I find that it will recursively layout the subcontainers within that Ext.Window object. Contrarily, when I call doLayout(false) on my toplevel container, the subcontainers will not be refreshed. This is what I find through practice.
But when I first use the doLayout method, after reading the current annotation of this method in the Api Documentation makes me think that calling doLayout(false) on the toplevel container will recursively layout the subcontainers which I finally find is not correct through practice.
I am not sure if you guys have the same experience or not?
Thanks!
-
12 Feb 2009 5:33 PM #569
Annotation of Ext.Container.doLayout()
I think the docs need touch up. I agree that the default does a recursive layout.
If shallow =- true.
Code:(true !== false) => true, therefore does recursive layout
- false.
Code:(false !== false) => false, therefore layout only this container, no children
- undefined (the default).
Code:(undefined !== false) => true, therefore does recursive layout
Suggested revision:
Not a doc change, but I'd also agree that "shallow" is contradictory to the behavior.Code:(optional) Specify false to only calc the layout of this component, and let child components auto calc layouts as required. The default is true, which calls doLayout recursively for each subcontainer item.MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
- true.
-
13 Feb 2009 12:37 PM #570
[implemented]
[implemented]
[implemented]
The argument type is not declared in Ext.Panel for toolTemplate.
This crashes oxymoron's js doc tool, so may well do the same to ExtJS's version.
Specifying the type fixes it:Code:/** * @cfg toolTemplate * @type {Ext.Template/Ext.XTemplate}
Code:/** * @cfg {Object} toolTemplate * @type {Ext.Template/Ext.XTemplate}MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow


Reply With Quote