mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
Make spreadsheets fullscreen
Spreadsheets from multiple sessions need to be redesigned to perhaps use tabs or split windows or something else
This commit is contained in:
@@ -57,11 +57,9 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
|
position: relative;
|
||||||
|
padding: var(--margin-small);
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-top: var(--margin-medium);
|
|
||||||
margin-left: var(--margin-small);
|
|
||||||
margin-right: var(--margin-small);
|
|
||||||
margin-bottom: var(--margin-medium);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@@ -204,7 +202,11 @@ footer p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
margin-bottom: var(--margin-large);
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
height: calc(100% - var(--margin-small) * 2);
|
||||||
|
width: calc(100% - var(--margin-small) * 2);
|
||||||
|
overflow-x: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.csv-table {
|
.csv-table {
|
||||||
|
|||||||
@@ -206,16 +206,19 @@ function addTableElement(blenderId, csvData, filename) {
|
|||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var containerHeight=$('.table-container').height();
|
||||||
|
var h3Height=$('.table-container>h3').height();
|
||||||
var table = new Tabulator("#table-" + blenderId, {
|
var table = new Tabulator("#table-" + blenderId, {
|
||||||
placeholder: "No data to display",
|
placeholder: "No data to display",
|
||||||
height: "400px",
|
|
||||||
resizableColumnGuide: true,
|
resizableColumnGuide: true,
|
||||||
index: "GlobalId",
|
index: "GlobalId",
|
||||||
data: csvData,
|
data: csvData,
|
||||||
importFormat: "csv",
|
importFormat: "csv",
|
||||||
autoColumns: true,
|
autoColumns: true,
|
||||||
selectableRows: 1,
|
selectableRows: 1,
|
||||||
layout: "fitColumns",
|
layout: "fitDataFill",
|
||||||
|
height: containerHeight - h3Height - 20 + "px",
|
||||||
|
movableColumns: true,
|
||||||
// Our fields are never nested, and we use the "." character in queries
|
// Our fields are never nested, and we use the "." character in queries
|
||||||
nestedFieldSeparator: false,
|
nestedFieldSeparator: false,
|
||||||
autoColumnsDefinitions: function (definitions) {
|
autoColumnsDefinitions: function (definitions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user