Questions tagged [cliptobounds]
27 questions
109
votes
7 answers
What's the best way to add a drop shadow to my UIView
I am trying to add a drop shadow to views that are layered on top of one another, the views collapse allowing content in other views to be seen, in this vein i want to keep view.clipsToBounds ON so that when the views collapse their content is…

Wez
- 10,555
- 5
- 49
- 63
11
votes
2 answers
Drawing outside the bounds of UITableViewCell
I am trying to add a "post-it note"-like image to all the cells in my UITableView. This image needs to draw (partly) outside of the bounds of the UITableViewCell.
When setting clipToBounds to NO, the image is indeed drawn outside the cell's bounds.…

Beav
- 495
- 2
- 5
- 14
8
votes
2 answers
How can I get WPF's ClipToBounds to work?
I have an application that displays an image inside of an Image object in WPF. The image is contained in a control whose xaml looks like:

mmr
- 14,781
- 29
- 95
- 145
8
votes
4 answers
Can you limit UIView Clip Subviews to certain sides of a view?
I have a UIScrollView that contains other subviews that are partially drawn outside of the scrollview. These views extend vertically above the scrollview. Is it possible to only allow the subviews to be drawn outside the top of the scrollview, and…

Justin Moore
- 884
- 2
- 9
- 22
7
votes
0 answers
Equivalent of clipToBounds for Mac (NSView's layer)
I have a class "GlobalView" which extends NSView and has two subviews GreenRectView (which extends NSView).
I use the CALayer from my GreenRectView in order to be able to rotate (with setAffineTransform:) my view around a point other than the…

jlink
- 682
- 7
- 24
5
votes
1 answer
iOS 7 UITableViewCell clips TEMPORARILY
I have been having the same issue as everybody else with UITableViewCell clipping to it's bounds. As someone else correctly pointed out , the cell's contentView has a new superview. So I did this:
- (UITableViewCell *) tableView:(UITableView…

George
- 4,029
- 1
- 23
- 31
2
votes
0 answers
How can we define ClipToPadding in Jetpack compose as well?
How can we define ClipToPadding in Jetpack compose as well?
Consider we have a card component that inside of it we have buttons with shadow, how can we have the ClipToPadding=false in Compose?

Sepideh Vatankhah
- 597
- 5
- 17
2
votes
2 answers
Can I clipToBounds selectively?
I have a custom class that adds a border to my button and has a function to create the “X” button in the upper lefthand corner.
First problem: In order for the X button to appear outside the bounds of the image button, I have to tun off…

squarehippo10
- 1,855
- 1
- 15
- 45
2
votes
0 answers
iOS: MasksToBounds not working during Flip Animation
I am trying to flip a view and show a different view with an animation looking like flipping a card around.
This all worked well. I made one Parent View that nested 2 child views, these child views are the ones which get flipped. My Parent View has…
user9557173
1
vote
1 answer
Displaying content outside the boundaries of a Window
So, I am building a part of a UI that is used to display a video stream along with a few other controls beside it. Without getting into too much detail, the video is a stream from an area scan camera under which is an objective lens and a tissue…

Ed S.
- 122,712
- 22
- 185
- 265
1
vote
1 answer
Clip to bounds of a different UIImageView
I have two UIImageViews, imageView1 and imageView2. I've set
self.imageView1.clipsToBounds = YES;
but I was wondering if it is possible to set imageView1 to clipToBounds of imageView2?

burrGGG
- 617
- 2
- 9
- 18
1
vote
2 answers
FabricJS ClipTo Issue for multiple objects like group
My code is
canvas.clipTo = function (ctx) {
ctx.beginPath();
for (var i = 0; i < totalPrintArea; i++) {
ctx.save();
ctx.fillStyle = 'rgba(51,51,51,0)';
ctx.rect(clipLft[i], clipTp[i], clipW[i], clipH[i],…

Ashish Bhatt
- 105
- 1
- 1
- 10
1
vote
1 answer
Dragging a UICollectionViewCell on another element
I want to drag a UICollectionViewCell on another UIView or another element.
I've created a subclass of UICollectionViewCell.
This is my cell class, subclass of UICollectionViewCell:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
…

onivi
- 1,348
- 3
- 17
- 25
1
vote
0 answers
Can I draw UITableViewCells that are outside the UITableView's frame?
I have a horizontal UITableView where I would like to set the paging distance. I tried this approach,
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
_tableView.decelerationRate =…

Feta
- 522
- 1
- 5
- 11
0
votes
1 answer
Using a transparent UIImageView to clip other UIImageViews
I was wondering if there is anyway to use a transparent UIImageView (Box C) to clip certain images that move overtop of it.
In my example I am moving Box A & B which are both UIImageViews towards Box C which is Transparent. Once the boxes collide I…

Tasik
- 236
- 6
- 13