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

Feature/text alignment #565

Merged
merged 7 commits into from
Dec 19, 2021
Merged

Conversation

Amir-P
Copy link
Collaborator

@Amir-P Amir-P commented Nov 27, 2021

Refer to #437 for description and previous discussions.

@Amir-P Amir-P force-pushed the feature/text_alignment branch from 5cd1007 to eec1e9b Compare December 10, 2021 08:05
@Amir-P Amir-P requested a review from pulyaevskiy December 10, 2021 08:06
Copy link
Contributor

@pulyaevskiy pulyaevskiy left a comment

Choose a reason for hiding this comment

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

Thank you! Just have one final minor question. PTAL!

Comment on lines +44 to +45
if (_prototypePainter.textAlign == value) return;
_prototypePainter.textAlign = value;
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe setting textAlign on prototype painter would not have any effect... unless you're using the painter as placeholder for current alignment value? In which case I'd probably recommend to actually introduce _textAlign private field to make it more explicit and avoid any possibility of prototype painter messing with this value in future.

Copy link
Contributor

@pulyaevskiy pulyaevskiy left a comment

Choose a reason for hiding this comment

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

LGTM

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