Skip to content

Commit

Permalink
component.Splitter: drag proxy theme file no longer loading #5847
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Sep 1, 2024
1 parent a374b72 commit 1c3d4cf
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/component/Splitter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@ class Splitter extends Component {
this[this.direction === 'vertical' ? 'width' : 'height'] = value
}

/**
* Triggered after the windowId config got changed
* @param {Number|null} value
* @param {Number|null} oldValue
* @protected
*/
afterSetWindowId(value, oldValue) {
super.afterSetWindowId(value, oldValue);

let {dragZone} = this;

if (dragZone) {
dragZone.windowId = value
}
}

/**
* Triggered before the direction config gets changed
* @param {String} value
Expand Down Expand Up @@ -198,23 +214,25 @@ class Splitter extends Component {
* @param data
*/
onDragStart(data) {
let me = this,
style = me.style || {},
vertical = me.direction === 'vertical';
let me = this,
style = me.style || {},
vertical = me.direction === 'vertical',
{appName, windowId} = me;

me.parent.disabled = true;

if (!me.dragZone) {
me.dragZone = Neo.create({
module : DragZone,
appName : me.appName,
appName,
bodyCursorStyle : vertical ? 'ew-resize !important' : 'ns-resize !important',
boundaryContainerId: me.parentId,
dragElement : me.vdom,
moveHorizontal : vertical,
moveVertical : !vertical,
owner : me,
useProxyWrapper : false,
windowId,
...me.dragZoneConfig
})
} else {
Expand Down

0 comments on commit 1c3d4cf

Please sign in to comment.