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

Attempt to fix scrolling behavior in RubAbstractTextArea & friends #11583

Merged

Conversation

fmqa
Copy link
Contributor

@fmqa fmqa commented Aug 22, 2022

Attempts to fix #10666

Adds a flag that, if enabled, automatically resizes the text area horizontally so that its width equals the approximate point size of the longest text line in the editing pane. The flag is enabled by default for RubScrolledTextMorph's textArea, thus alleviating issues with scrolling in Iceberg & Epicea's changeset viewers.

@MarcusDenker
Copy link
Member

Failing test not related

@lopezca
Copy link
Contributor

lopezca commented Sep 3, 2022

Thank you @fmqa this fix is really helpful.

@Ducasse
Copy link
Member

Ducasse commented Sep 3, 2022

Thanks for the test and feedback

@@ -991,6 +992,10 @@ RubAbstractTextArea >> handleEdit: editBlock [
"Ensure that changed areas get suitably redrawn"

editBlock value.
"Fit to width on edit"
(self grow isNotNil & self grow) ifTrue: [
Copy link
Member

Choose a reason for hiding this comment

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

I will integrate it but I would have preferred to have grow initialized to false and to avoid the isNil check.

@Ducasse
Copy link
Member

Ducasse commented Sep 4, 2022

I will integrate it now and it would be good to produce another one where grow is initialized to false and like that we avoid having a nil or true or false around and we can remove the isNotNil check.

@Ducasse Ducasse merged commit 2a853fa into pharo-project:Pharo11 Sep 4, 2022
@fmqa
Copy link
Contributor Author

fmqa commented Sep 4, 2022

@Ducasse #11645 avoids the isNotNil message as per your recommendation

@Ducasse
Copy link
Member

Ducasse commented Sep 4, 2022

Thanks :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iceberg's commit window has non-functional horizontal scroll bars
4 participants