[view/grid][xs]: fix to grid css so drop-down menus are not hidden if they overflow plus move no-hidden attribute onto recline-grid making css simpler and more reliable.

This commit is contained in:
Rufus Pollock 2012-05-13 08:25:23 +01:00
parent 44942dabdc
commit f229d6985c
2 changed files with 3 additions and 8 deletions

View File

@ -7,11 +7,6 @@
line-height: auto;
}
.recline-grid-container {
overflow: auto;
height: 550px;
}
.recline-grid {
border: 1px solid #ccc;
width: 100%;
@ -232,8 +227,8 @@ td.expression-preview-value {
* Read-only mode
*********************************************************/
.recline-read-only .no-hidden .recline-grid tr td:first-child,
.recline-read-only .no-hidden .recline-grid tr th:first-child
.recline-read-only .recline-grid.no-hidden tr td:first-child,
.recline-read-only .recline-grid.no-hidden tr th:first-child
{
display: none;
}

View File

@ -193,7 +193,7 @@ my.Grid = Backbone.View.extend({
});
newView.render();
});
this.el.toggleClass('no-hidden', (self.state.get('hiddenFields').length === 0));
this.el.find('.recline-grid').toggleClass('no-hidden', (self.state.get('hiddenFields').length === 0));
return this;
}
});