Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layouts: Ensure we're parsing float on the "px" row height #1234

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

joepavitt
Copy link
Collaborator

Description

When reconciling the rowHeight into the CSS vars, made an error on Fixed layouts which meant that the 48px was then included ins a JS calculation for the width, failing (because of the inclusion of px) and then not setting the width properly.

This PR ensures that rowHeight is a number, before injecting it into the width calculations.

Related Issue(s)

Fixes #1215

@joepavitt joepavitt changed the title Ensure we're parsing float on the "px" row height Layouts: Ensure we're parsing float on the "px" row height Aug 25, 2024
Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with suggestion

ui/src/layouts/Group.vue Outdated Show resolved Hide resolved
Copy link
Contributor

@gayanSandamal gayanSandamal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the console statement as Joe is not available today.

Looks good to me.

@gayanSandamal gayanSandamal merged commit 02b96fb into main Aug 26, 2024
1 of 2 checks passed
@gayanSandamal gayanSandamal deleted the 1215-fixed-layout-fix branch August 26, 2024 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apparent layout change on small screens since 1.14.0
3 participants