Skip to content

Commit

Permalink
Fixed height for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ajturner committed Jul 20, 2023
1 parent 932d73f commit 7457657
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion src/components/hub-compass-map/hub-compass-map.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@
#mapDiv {
height: 100%;
width: 100%;
flex-grow: 3;
}

#tableDiv {
flex-grow: 1;

}
.table {
height: 100%;
min-height: 300px;
}
#mapWrapper {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
}
2 changes: 1 addition & 1 deletion src/components/hub-compass-map/hub-compass-map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export class HubCompassMap {
}
renderTableView(datasetId:string) {
console.debug("renderTableView: ", {datasetId, datasetEls: this.datasetEls})
const output =<calcite-tab><div class="table" ref={(el) => {this.datasetEls[datasetId].view = el}}></div></calcite-tab>;
const output =<calcite-tab class="table" ><div ref={(el) => {this.datasetEls[datasetId].view = el}}></div></calcite-tab>;
return output
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
componentEl.datasetIds = [];
componentEl.showLayers = true;
componentEl.showSearch = true;
componentEl.showTable = false;
componentEl.showTable = true;

function moveMap(center, zoom) {
componentEl.center = center;
Expand Down

0 comments on commit 7457657

Please sign in to comment.