Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork967
Improve TextField.autoSize, implement TextField.background#3163
Improve TextField.autoSize, implement TextField.background#3163Herschel merged 3 commits intoruffle-rs:masterfrom
Conversation
9b18211 to5cc767eCompare
seanpm2001 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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 commentedFeb 11, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Same here. I'll point out that you should also make sure the other |
danielhjacobs commentedFeb 11, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 commentedFeb 11, 2021
I hoped the existing tests would "handle themselves" without having me actually look at them (especially if they pass) :) |
adrian17 commentedFeb 11, 2021
@craniumcadoo FYI:
From what I see, my patch seems to fix this particular behavior. |
adrian17 commentedFeb 11, 2021
Also none of the existing EditText tests are affected, from visual inspection. |
5cc767e tod4b8873Compared4b8873 tobcfc96eCompare
Uh oh!
There was an error while loading.Please reload this page.
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:
console.log(el.offsetLeft)triggers reflow in JS), not on each property settextFormat.alignand align text to right;As for improvements:
autoSizeis enabledTextField.backgroundflag - before, we would draw background wheneverborder=true, which wasn't correct.Screenshots:
Nanaca Crash: Misaligned 'record' numbers #1440: