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:
Nathan Gray 2014-04-02 15:16:12 +00:00
parent ad3e1e5021
commit d5c810d5c4

View File

@ -1514,6 +1514,22 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
set_no_filter2: function(bool) {
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.