luci-mod-network: fix vlan filter matrix overflow after redraw
Ensure that the overflow styles are reapplied after a redraw. This also simplifies the code as a side-effect. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a0fd70ad01
commit
7a781d9cd8
1 changed files with 2 additions and 8 deletions
|
@ -825,14 +825,6 @@ return baseclass.extend({
|
||||||
|
|
||||||
o = this.addOption(s, 'bridgevlan', form.SectionValue, 'bridge-vlan', form.TableSection, 'bridge-vlan');
|
o = this.addOption(s, 'bridgevlan', form.SectionValue, 'bridge-vlan', form.TableSection, 'bridge-vlan');
|
||||||
o.depends('type', 'bridge');
|
o.depends('type', 'bridge');
|
||||||
o.renderWidget = function(/* ... */) {
|
|
||||||
return form.SectionValue.prototype.renderWidget.apply(this, arguments).then(L.bind(function(node) {
|
|
||||||
node.style.overflowX = 'auto';
|
|
||||||
node.style.overflowY = 'hidden';
|
|
||||||
|
|
||||||
return node;
|
|
||||||
}, this));
|
|
||||||
};
|
|
||||||
|
|
||||||
ss = o.subsection;
|
ss = o.subsection;
|
||||||
ss.addremove = true;
|
ss.addremove = true;
|
||||||
|
@ -855,6 +847,8 @@ return baseclass.extend({
|
||||||
|
|
||||||
ss.render = function(/* ... */) {
|
ss.render = function(/* ... */) {
|
||||||
return form.TableSection.prototype.render.apply(this, arguments).then(L.bind(function(node) {
|
return form.TableSection.prototype.render.apply(this, arguments).then(L.bind(function(node) {
|
||||||
|
node.style.overflow = 'auto hidden';
|
||||||
|
|
||||||
if (this.node)
|
if (this.node)
|
||||||
this.node.parentNode.replaceChild(node, this.node);
|
this.node.parentNode.replaceChild(node, this.node);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue