mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix sidebar splitter no longer respects its minsize value
This commit is contained in:
parent
60aa0035a7
commit
d7019caec5
@ -1353,13 +1353,20 @@ window.egw_fw_ui_splitter.prototype.dragHandler = function(event)
|
||||
this.constraints[0].size += delta;
|
||||
this.constraints[1].size -= delta;
|
||||
|
||||
// reset the size to minsize if it's dragged beyond it
|
||||
if (this.constraints[0].size + delta <= this.constraints[0].minsize)
|
||||
{
|
||||
this.constraints[0].size = this.constraints[0].minsize;
|
||||
return;
|
||||
}
|
||||
|
||||
this.resizeCallback(this.constraints[0].size, this.constraints[1].size);
|
||||
};
|
||||
|
||||
|
||||
window.egw_fw_ui_splitter.prototype.dragStopHandler = function(event)
|
||||
{
|
||||
return; // let draghandler taking care of resize callback
|
||||
this.resizeCallback(this.constraints[0].size, this.constraints[1].size);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user