Skip to content

[iOS] Image wrongly layouted when a transform is applied - #2803

Merged
carldebilly merged 3 commits into
masterfrom
dev/cdb/bugs/ios-image-clipped-animation
Mar 13, 2020
Merged

carldebilly merged 3 commits into
masterfrom
dev/cdb/bugs/ios-image-clipped-animation

Conversation

@carldebilly

@carldebilly carldebilly commented Mar 12, 2020 •

Copy link
Copy Markdown
Member

Fix #2441

Bugfix

What is the current behavior?

Applying a render transform directly on an <Image> on iOS were producing a wrongly layouted image.

What is the new behavior?

Render transform is now applied correctly.

PR Checklist

  • Tested code with current supported SDKs
  • [ ] Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

@carldebilly carldebilly added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform kind/regression Something was working, now it isn't labels Mar 12, 2020
@carldebilly carldebilly added this to the 2.1 milestone Mar 12, 2020
@carldebilly carldebilly self-assigned this Mar 12, 2020
@gitpod-io

gitpod-io Bot commented Mar 12, 2020 •

Copy link
Copy Markdown

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Mar 12, 2020
@carldebilly carldebilly removed area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Mar 12, 2020

namespace UITests.Windows_UI_Xaml_Controls.ImageTests
{
[SampleControlInfo("Image")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
[SampleControlInfo("Image")]
[Sample("Image", "Transform")]

Comment thread doc/ReleaseNotes/_ReleaseNotes.md Resolved
@github-actions github-actions Bot added area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Mar 12, 2020
@unoplatform unoplatform deleted a comment from nventive-devops Mar 12, 2020
{
var availableSize = Frame.Size;
// Use "Bounds" over "Frame" because it includes all transforms
var availableSize = Bounds.Size.ToFoundationSize(); ;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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


return _previousSize = size;
}
public override CGSize SizeThatFits(CGSize size) => _layouter.Measure(size.ToFoundationSize());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 13045 found UI Test snapshots differences.

  • android-28: 3 changed over 316

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • PopupWithOverlay_After
    • TestManipulation_Result
    • ToggleSwitch_TemplateReuseTest_UITests_Shared_Windows_UI_Xaml_Controls_ToggleSwitchControl_ToggleSwitch_TemplateReuse
  • android-28-Snap: 6 changed over 684

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Button_Custom_Button_With_ContentTemplate_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Custom_Button_With_ContentTemplate
    • ComboBox_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement
    • ImageBrushTestControl_ImageBrushChangingCornerRadius_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushChangingCornerRadius
    • TextBlockControl_TextBlockMultilineInStarStackPanel_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBlockMultilineInStarStackPanel
    • TextBlockControl_TextBoxSizeChanging_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBoxSizeChanging
    • TextBox_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll
  • ios: 2 changed over 172

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Keyboard_Textbox_InsideScrollViewer_Validation_1_-_Remove_Focus_on_filledTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_2_-_Remove_Focus_on_placeholderTextTextBox
  • ios-Snap: 6 changed over 676

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ContentControlTestsControl_ContentControl_Nested_TemplatedParent_Uno_UI_Samples_Content_UITests_ContentControlTestsControl_ContentControl_Nested_TemplatedParent
    • Default_Uno_UI_Samples_UITests_Image_Image_Stretch_Uno_UI_Samples_UITests_Image_Image_Stretch
    • MediaPlayerElement_Using__avi_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Avi_Extension
    • MediaPlayerElement_Mini_player_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Minimal
    • WebView_WebView_ChromeClient_Uno_UI_Samples_Content_UITests_WebView_WebView_ChromeClient
    • Transform_Image_With_RotateTransform_Uno_UI_Samples_Content_UITests_Transform_Image_With_RotateTransform
  • wasm: 2 changed over 686

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewChangeView
    • Uno.UI.Samples.UITests.Image.Image_Margin
  • wasm-automated: 3 changed over 354

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • LoadEmptyContentControl_ContentControlNoTemplateNoContent_-_bntContentClear
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • When_TransformToVisual_ScrollViewer_UITests_Shared_Windows_UI_Xaml_UIElementTests_TransformToVisual_ScrollViewer

@carldebilly
carldebilly merged commit df94384 into master Mar 13, 2020
@carldebilly
carldebilly deleted the dev/cdb/bugs/ios-image-clipped-animation branch March 13, 2020 02:18
@jeromelaban

Copy link
Copy Markdown
Member

@Mergifyio backport release/beta/2.1

@mergify

mergify Bot commented Mar 13, 2020

Copy link
Copy Markdown
Contributor

Command backport release/beta/2.1: failure

No backport have been created

  • Backport to branch release/beta/2.1 failed

Cherry-pick of e9d51b1 has failed:

On branch mergify/bp/release/beta/2.1/pr-2803
Your branch is ahead of 'origin/release/beta/2.1' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit e9d51b1fc.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)

	both modified:   doc/ReleaseNotes/_ReleaseNotes.md

no changes added to commit (use "git add" and/or "git commit -a")

@unoplatform unoplatform deleted a comment from mergify Bot Mar 13, 2020
jeromelaban added a commit that referenced this pull request Mar 13, 2020
[iOS] Image wrongly layouted when a transform is applied (bp #2803)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation kind/regression Something was working, now it isn't platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Invalid clipping during animations

4 participants