Bug 27461 - [Android] Frame does not clip content, even when IsClippedToBounds is true
Summary: [Android] Frame does not clip content, even when IsClippedToBounds is true
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.4
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-26 11:49 UTC by John Miller [MSFT]
Modified: 2015-02-27 05:40 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description John Miller [MSFT] 2015-02-26 11:49:38 UTC
**Overview:**

   The content of a Frame is not clipped by the bounds of the Frame.

**Steps to Reproduce:**

   <ContentPage.Content>
		<Frame OutlineColor="Red"
			IsClippedToBounds="true"
			Padding="1"
			WidthRequest="314"
			HasShadow="False"
			HorizontalOptions="Center">
				<StackLayout BackgroundColor="White"
					Padding="0"
					IsClippedToBounds="true">
				<Image Source="dog.jpg"
					Aspect="AspectFill"/>
				<StackLayout Padding="11" IsClippedToBounds="true">
					<Label Text="Title"
						TextColor="Black"
						XAlign="End"/>
					<Label Text="The Description"
						TextColor="Black"
						XAlign="End"/>
				</StackLayout>
			</StackLayout>
		</Frame>
	</ContentPage.Content>

**Actual Results:**

   See this image. The corners have content bleeding through. Also, the bottom does not show the Outline color. You may have to zoom in to see: http://screencast.com/t/wEJgUdKi

**Expected Results:**

   Outline color should be solid all the way around. 

**Build Date & Platform:**

   XF 1.3.4
   Android API 19
Comment 1 Abhishek 2015-02-26 13:58:43 UTC
I have tried this issue and able to reproduce the reported behavior at my ends.

Steps To Reproduce:
1. Create a Xamarin.Forms Application (PCL).
2. Add Forms Content page Xaml in the solution. 
3.Copy the above code and paste it inside the <ContentPage.Content></ContentPage.Content>
4. Call the content page.
5. Run the application and observe that corners have content bleeding.Zoom in to see it.

Screencast:http://www.screencast.com/t/MQsgiIC1M
Android Device Log:https://gist.github.com/AkhileshKumar01/b369a82f098b51e165d6
Application Output:https://gist.github.com/AkhileshKumar01/fe99a2b361c21b80ac88

Build Info:
Xamarin.Forms 1.3.5.6333-pre1
Xamarin.Forms 1.3.4.6332

=== Xamarin Studio ===

Version 5.7.2 (build 7)
Installation UUID: 93e693b0-b53d-40f4-b29c-b61ff5cbe892
Runtime:
	Mono 3.12.0 ((detached/b8f5055)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000077

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.6.2.22 (Trial Edition)
Hash: 862702c
Branch: 
Build date: 2015-02-18 15:19:23-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Trial Edition)
Android SDK: /Users/xamarin23/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin.Mac ===

Version: 1.12.0.8 (Trial Edition)

=== Build Information ===

Release ID: 507020007
Git revision: dcf3f486177d3e625349b51a8f3be807e3fa7712
Build date: 2015-02-24 09:14:27-05
Xamarin addins: ea7c65bb7876e4a876ab365208e94acdf8f330ef

=== Operating System ===

Mac OS X 10.10.0
Darwin 800BC.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Jason Smith [MSFT] 2015-02-27 05:40:34 UTC
The clip is set to the bounds, not to the rounding of the corners.