#489 closed enhancement (invalid)
activeResizing support
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Widgets | Version: | |
Keywords: | Accordion SplitPane widget | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
I don't know if activeResizing was ment for this, but in trunk: src/widget/SplitPane.js
$ svn diff SplitPane?.js Index: SplitPane?.js =================================================================== --- SplitPane?.js (revision 3210) +++ SplitPane?.js (working copy) @@ -93,8 +93,8 @@
this._addSizer();
}
+ if (this.isActiveResize == 1) {
create the fake dragger
-
this.virtualSizer = document.createElement('div'); this.virtualSizer.style.position = 'absolute'; this.virtualSizer.style.display = 'none';
@@ -104,7 +104,7 @@
this.domNode.appendChild(this.virtualSizer);
dojo.html.disableSelection(this.virtualSizer);
- + }
size the panels once the browser has caught up
@@ -124,11 +124,13 @@
this.sizers[i] = document.createElement('div'); this.sizers[i].style.position = 'absolute';
+ if (this.isActiveResize == 1) {
this.sizers[i].className = this.isHorizontal ? 'dojoHtmlSplitPaneSizerH' : 'dojoHtmlSplitPaneSizerV';
var self = this; var handler = (function(){ var sizer_i = i; return function(e){ self.beginSizing(e, sizer_i); } })(); dojo.event.connect(this.sizers[i], "onmousedown", handler);
+ }
this.domNode.appendChild(this.sizers[i]); dojo.html.disableSelection(this.sizers[i]);
Why? because I wanted accordion not to have possibility to resize those labels only clicking..
- Joose
Change History (3)
comment:1 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Description: | modified (diff) |
---|
Joose, activeResizing means that the panes resize as you move the slider bar. If activeResizing==false then the panes only resize on mouseUp.
I don't understand your comment exactly but it seems like you misunderstood the meaning.
If this is still an issue please sign a CLA and then attach the patch to this bug report, making sure that tabs have *not* been converted to spaces.
Also note that Accordian will probably be rewritten to not use SplitPane?.