Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve TextField.autoSize, implement TextField.background#3163

Merged
Herschel merged 3 commits intoruffle-rs:masterfrom
adrian17:autosize-improvements
Feb 13, 2021
Merged

Improve TextField.autoSize, implement TextField.background#3163
Herschel merged 3 commits intoruffle-rs:masterfrom
adrian17:autosize-improvements

Conversation

@adrian17
Copy link
Collaborator

@adrian17adrian17 commentedFeb 8, 2021
edited
Loading

First commit makes TextField better respect properties of autoSize: with "left", it extends to the right from_x; with "right", it extends to the left from_x+_width. This doesn't affect text layout; just where the text field appears in the end.
This is not a full fix of any issue; in fact, this doesn't fix completely any issues, just improve them a bit. In particular, various missing parts I noticed:

As for improvements:

Screenshots:

seanpm2001 reacted with thumbs up emojitorokati44, MartySVK, Bale001, rickythemanster, paq, Poopooracoocoo, danielhjacobs, madsmtm, and seanpm2001 reacted with hooray emoji
Copy link

@seanpm2001seanpm2001 left a comment
edited
Loading

Choose a reason for hiding this comment

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

It looks good. Everything is clean and functional.

@kmeisthax
Copy link
Member

kmeisthax commentedFeb 11, 2021
edited
Loading

Same here.

I'll point out that you should also make sure the otherEditText tests don't have a rendering regression. I structured them to double as both traceable and renderable regression tests, so you should run them on Desktop & compare with Flash Player orruffle/master as well.

seanpm2001 reacted with thumbs up emoji

@danielhjacobs
Copy link
Contributor

danielhjacobs commentedFeb 11, 2021
edited
Loading

As the author of#3156 this looks promising, though obviously it would be better for me if it fully fixed that issue.

Semi-related; this may not be the best place for this comment, but I thought I'd mention this since my issue was mentioned:

I added more SWFs with the same problem to the issue. They are nearly identical files, but maybe they will give a clue as to the behavior that you "don't fully understand". I thought they were redundant, but better to include too much detail than too little.

Edit: Further testing revealed a slight difference in the problems with some of the SWFs versus others. See latest comment on the issue for further details since this is not the place for me to mention them.

@adrian17
Copy link
CollaboratorAuthor

I'll point out that you should also make sure the other EditText tests don't have a rendering regression

I hoped the existing tests would "handle themselves" without having me actually look at them (especially if they pass) :)
But sure, I can take a look at them (I don't think most of them actually useautoSize, so hopefully they shouldn't be affected).

@adrian17
Copy link
CollaboratorAuthor

@craniumcadoo FYI:

Upon moving the mouse to hover over (4), then (5), then back to (4), then ... repeatedly, the text just keeps moving further right, until it is eventually offscreen completely.

From what I see, my patch seems to fix this particular behavior.

danielhjacobs reacted with thumbs up emoji

@adrian17
Copy link
CollaboratorAuthor

Also none of the existing EditText tests are affected, from visual inspection.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@HerschelHerschelHerschel approved these changes

+1 more reviewer

@seanpm2001seanpm2001seanpm2001 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@adrian17@kmeisthax@danielhjacobs@Herschel@seanpm2001

[8]ページ先頭

©2009-2026 Movatter.jp