Closed wuyongfeng closed 12 years ago
I am sorry,Commit Has been modified, and the Pull requests.
I don't think this is a clear improvement. Really, the behavior the user wants for the image completely depends on what the image is. If it's photo, the old method tends to be better. If it is a pattern, they would want to tile it. For something like a color gradient or abstract painting where the scale doesn't really matter, then this patched version might be perfect since it always keeps the image taking up the full screen. But for photos is not good.
Since I don't think it's markedly better than the previous implementation I'm not really wanting to merge this.
I guess what we could do is present some properties that let the user choose what the behavior should be. However, doing this with the "style=" attribute is wrong from the get-go. We really shouldn't be teaching users to do that because the right way is through CSS. So I'd probably prefer to wait until we have some support for modifying the user's CSS file before we go farther with this.
The main purpose of the PR is to fix the distorting bug. As for the tiling thing, we can add more properties to handle it. As for the "style=" problem, we can improve the implementation by adding a "main.css", which is generated when serializing ADM tree. Styles can be put in that file. So I suggest we still accept this PR and we can send other PRs for the "more properties" and "style=" things.
Demand a mess and not very clear, to do so whether it is worth
OK, I accepted the patch. Really, just because QA files a bug doesn't mean that we have to fix it even when it doesn't really make progress. They can now just as well file a bug about the image aspect ratio being distorted. Instead, we need a more comprehensive solution.
[Widgets] Fixed Bug: The background image resizes upon insertion of many widgets, distorting itself Description
EXACT STEPS LEADING TO PROBLEM:
Insert lots of widgets. ACTUAL OUTCOME:
The background image keeps resizing, distorting itself. EXPECTED OUTCOME:
The image should be fixed.