-
19 Sep 2010 8:47 AM #1
[OPEN-1271] Collapsed layout doesn't differ between vertical and horizontal
[OPEN-1271] Collapsed layout doesn't differ between vertical and horizontal
when having splitbars, you can differ between vertical and horizontal because they have the css-classes:
In collapsed mode you can't differ, eg in my case i only haveCode:x-splitbar-h or x-splitbar-v
So i have no way to format them different (vertical and horizontal). Should have classesCode:x-layout-collapsed x-layout-collapsed-south x-layout-cmini-south
Code:x-layout-collapsed-h and x-layout-collapsed-v
vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
19 Sep 2010 10:16 AM #2
this override does the job
Code:Ext.layout.BorderLayout.Region.prototype.getCollapsedEl = function(){ if(!this.collapsedEl){ var splitCls = ''; if(this.split) { splitCls = ' x-layout-collapsed-' + (this.position == 'north' || this.position == 'south' ? 'h' : 'v'); } if(!this.toolTemplate){ var tt = new Ext.Template( '<div class="x-tool x-tool-{id}"> </div>' ); tt.disableFormats = true; tt.compile(); Ext.layout.BorderLayout.Region.prototype.toolTemplate = tt; } this.collapsedEl = this.targetEl.createChild({ cls: "x-layout-collapsed x-layout-collapsed-"+this.position+splitCls, id: this.panel.id + '-xcollapsed' }); this.collapsedEl.enableDisplayMode('block'); if(this.collapseMode == 'mini'){ this.collapsedEl.addClass('x-layout-cmini-'+this.position); this.miniCollapsedEl = this.collapsedEl.createChild({ cls: "x-layout-mini x-layout-mini-"+this.position, html: " " }); this.miniCollapsedEl.addClassOnOver('x-layout-mini-over'); this.collapsedEl.addClassOnOver("x-layout-collapsed-over"); this.collapsedEl.on('click', this.onExpandClick, this, {stopEvent:true}); }else { if(this.collapsible !== false && !this.hideCollapseTool) { var t = this.toolTemplate.append( this.collapsedEl.dom, {id:'expand-'+this.position}, true); t.addClassOnOver('x-tool-expand-'+this.position+'-over'); t.on('click', this.onExpandClick, this, {stopEvent:true}); } if(this.floatable !== false || this.titleCollapse){ this.collapsedEl.addClassOnOver("x-layout-collapsed-over"); this.collapsedEl.on("click", this[this.floatable ? 'collapseClick' : 'onExpandClick'], this); } } } return this.collapsedEl; };vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
19 Sep 2010 12:15 PM #3
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Radiobox/group layout horizontal and vertical
By stiptkevin in forum Ext GWT: DiscussionReplies: 6Last Post: 15 Nov 2010, 7:05 AM -
Border Layout Region collapsed display text vertical
By boonkerz in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 28 Apr 2010, 8:49 AM -
CheckboxGroup in 3.1 layout different (goes horizontal instead of vertical)
By harel in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 8 Jan 2010, 2:46 AM -
[2.1/2.2][OPEN] Fieldset isn't correctly collapsed in border layout
By juhyx in forum Ext 2.x: BugsReplies: 3Last Post: 5 Aug 2008, 9:23 PM -
css-trouble: x-layout-collapsed x-layout-collapsed-west x-layout-collapsed-over
By tobiu in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 16 Aug 2007, 8:29 AM


Reply With Quote