forked from extern/egroupware
If nextmatch starts hidden (or disabled) it won't size correctly.
Added a resize if enabling a disabled nextmatch so it re-calculates its size.
This commit is contained in:
parent
ad3e1e5021
commit
d5c810d5c4
@ -1515,6 +1515,22 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
||||
this.set_no_filter(bool,'filter2');
|
||||
},
|
||||
|
||||
/**
|
||||
* If nextmatch starts disabled, it will need a resize after being shown
|
||||
* to get all the sizing correct. Override the parent to add the resize
|
||||
* when enabling.
|
||||
*/
|
||||
set_disabled: function(_value)
|
||||
{
|
||||
var previous = this.disabled;
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
if(previous && !_value)
|
||||
{
|
||||
this.resize();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Actions are handled by the controller, so ignore these during init.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user