Skip to content

Commit

Permalink
Merge pull request #477 from writer/fix-dataframe-maxheight
Browse files Browse the repository at this point in the history
fix: Dataframe maxheight
  • Loading branch information
ramedina86 authored Jun 25, 2024
2 parents 73007b9 + 7deabc7 commit 20fe6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "writer"
version = "0.6.2rc1"
version = "0.6.2rc2"
description = "An open-source, Python framework for building feature-rich apps that are fully integrated with the Writer platform."
authors = ["Writer, Inc."]
readme = "README.md"
Expand Down
6 changes: 1 addition & 5 deletions src/ui/src/core_components/content/CoreDataframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,9 @@ const gridStyle = computed(() => {
.join(" ");
}
if (fields.wrapText.value == "yes") {
maxHeight = (displayRowCount.value + 1) * ROW_HEIGHT_PX;
}
return {
"min-height": `${ROW_HEIGHT_PX * (1 + fields.displayRowCount.value)}px`,
"max-height": maxHeight ? `${maxHeight}px` : undefined,
"max-height": `${(displayRowCount.value + 1) * ROW_HEIGHT_PX}px`,
"font-family": fontStyle == "monospace" ? "monospace" : undefined,
"grid-template-columns": templateColumns,
"grid-template-rows": `${ROW_HEIGHT_PX}px repeat(${displayRowCount.value}, min-content)`,
Expand Down

0 comments on commit 20fe6ab

Please sign in to comment.