Skip to content

Commit

Permalink
Merge pull request #1234 from FlowFuse/1215-fixed-layout-fix
Browse files Browse the repository at this point in the history
Layouts: Ensure we're parsing float on the "px" row height
  • Loading branch information
gayanSandamal authored Aug 26, 2024
2 parents da95d64 + 5a070fa commit 02b96fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/src/layouts/Flex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
data () {
const rowHeight = getComputedStyle(document.body).getPropertyValue('--widget-row-height')
return {
rowHeight
rowHeight: parseFloat(rowHeight)
}
},
computed: {
Expand Down
5 changes: 0 additions & 5 deletions ui/src/layouts/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export default {
BaselineLayout,
WidgetGroup
},
data () {
return {
rowHeight: 48
}
},
computed: {
...mapState('ui', ['groups', 'widgets', 'pages']),
...mapState('data', ['properties']),
Expand Down
2 changes: 1 addition & 1 deletion ui/src/layouts/Notebook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
data () {
const rowHeight = getComputedStyle(document.body).getPropertyValue('--widget-row-height')
return {
rowHeight
rowHeight: parseFloat(rowHeight)
}
},
computed: {
Expand Down

0 comments on commit 02b96fb

Please sign in to comment.