Skip to content

Commit 13f6f5f

Browse files
committed
Merge branch 'fix/data-explorer-fullscreen' into 'master'
Fix data explorer Fullscreen See merge request datopian/clients/nhs-dataexplorer!18
2 parents 6e7855b + 1d6029a commit 13f6f5f

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

ckanext/dataexplorer/public/css/recline.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ body {
2020
.recline-slickgrid {
2121
height: 600px;
2222
}
23+
24+
@media screen and (min-width:2100px) and (min-height:850px){
25+
.recline-slickgrid {
26+
height: 800px;
27+
}
28+
}
29+
30+
@media screen and (min-width:2100px) and (min-height:1250px){
31+
.recline-slickgrid {
32+
height: 1200px;
33+
}
34+
}
35+
2336
/*
2437
.recline-timeline .vmm-timeline {
2538
height: 600px;

ckanext/dataexplorer/public/css/recline.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ckanext/dataexplorer/public/vendor/recline/recline.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,6 +3245,14 @@ my.SlickGrid = Backbone.View.extend({
32453245
formatter: formatter,
32463246
validator:validator(field)
32473247
};
3248+
3249+
// setting column.width dinamically
3250+
var numFields = self.model.fields.length;
3251+
// compute column widths
3252+
var fullWidth = self.$el.width();
3253+
var width = parseInt(Math.max(column.minWidth, fullWidth / numFields), 10);
3254+
column.width = width;
3255+
32483256
var widthInfo = _.find(self.state.get('columnsWidth'),function(c){return c.column === field.id;});
32493257
if (widthInfo){
32503258
column.width = widthInfo.width;

0 commit comments

Comments
 (0)