Bug 56090 - BlurEffect does not position correctly in Grid layout
Summary: BlurEffect does not position correctly in Grid layout
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.5
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-05-08 07:15 UTC by Assem Hakmeh
Modified: 2017-10-19 21:42 UTC (History)
3 users (show)

Tags: grid, blur, effect, ac
Is this bug a regression?: ---
Last known good build:


Attachments
XAML Showing Blur positioning error (802 bytes, application/xml)
2017-05-08 21:04 UTC, Assem Hakmeh
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 56090 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Assem Hakmeh 2017-05-08 07:15:39 UTC
When using a 2x2 Grid layout and the VisualElement in position 1,1 has a blur effect applied. the result is a blurred view of the correct size that is positioned at 0,0 instead of 1,1 in the Grid.

After some searching, the issue seems to result from the LayoutSubviews method in VisualElementRenderer iOS:

		public override void LayoutSubviews ()
		{
			base.LayoutSubviews ();
			if (this._blur != null && this.Superview != null) {
				this._blur.Frame = this.Bounds;
				if (this._blur.Superview == null) {
					this.Superview.Add (this._blur);
				}
			}
		}

Since the blur view is added to the SuperView, its Frame should be set to the Frame rather than Bounds.
Comment 1 Paul DiPietro [MSFT] 2017-05-08 14:16:25 UTC
Can you please upload a minimized reproduction project demonstrating the issue? It would be much appreciated. Thanks!
Comment 2 Assem Hakmeh 2017-05-08 21:04:06 UTC
Created attachment 22010 [details]
XAML Showing Blur positioning error

The BoxView is positioned in the lower right corner. However, the blur effect is showing in the upper left corner instead of being hidden behind the blue rectangle of the BoxView.
Comment 3 Paul DiPietro [MSFT] 2017-06-21 20:07:49 UTC
Updating to confirmed for now; checked against the latest 2.3.6 nightly build.
Comment 4 Assem Hakmeh 2017-10-19 20:39:40 UTC
Seems like this still isn't resolved in the latest 2.4.x release. Do you have any timeline for this 1-line fix?
Comment 5 Paul DiPietro [MSFT] 2017-10-19 21:42:49 UTC
This work will be scheduled for a future release which has yet to be determined. We also welcome PRs from the community, so you're also welcome to submit one for us to review in the meantime. Thanks!