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

Fix width height issues in widgets #255

Merged
merged 4 commits into from
Nov 16, 2022
Merged

Fix width height issues in widgets #255

merged 4 commits into from
Nov 16, 2022

Conversation

jmthomas
Copy link
Member

No description provided.

@jmthomas
Copy link
Member Author

jmthomas commented Nov 16, 2022

I hate how we came up with these screen definitions and scattered the parameters around. Any time we have a multi-widget (like LABELVALUERANGEBAR is the worst) it seems like we just picked and chose parameters to pass on to to the sub-widgets. Not sure the best path forward now because it would change screen definitions but this is pretty hard to maintain the way it is.

I think we should make certain parameters like WIDTH and HEIGHT only settable via the SETTINGS keyword.

@jmthomas
Copy link
Member Author

closes #157

Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

Looks good. Just a minor comment and playwright needs to pass.

# Create a dot at various y locations. The <%= %> adds the expression to the file
CANVASDOT 5 <%= 50 * x + 50 %> BLUE 5
<% end %> # Close our block from above
# The code inside is just ruby
Copy link
Member

Choose a reason for hiding this comment

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

This comment doesn't make sense anymore

@jmthomas jmthomas merged commit 9f9db03 into main Nov 16, 2022
@jmthomas jmthomas deleted the screen_width branch November 16, 2022 04:50
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.

2 participants