Comments (11)
Hi!
Sure, can you show me some code (if any) and maybe a screenshot of what's going on?
Thanks.
from bfpaperbutton.
it's too hard for me to upload a photo...
I found out that I use Storyboard to create the button will have this problem
but using code wont.
and it happens when u add the button in another viewcontroller and the button is from storyboard
from bfpaperbutton.
Hi,
Thanks for the screenshot.
It seems like the button's frame extends beyond your white container view. This seems like either an issue with the Auto Layout code, or just with the view hierarchy. Is the button actually inside the white view or just on top of it?
Below is an example test I just made using the storyboard, no auto layout. I placed 3 buttons inside of a white view which sits on the main view (gray):
Please check your layout and let me know if you have any more questions :)
from bfpaperbutton.
I use autolayout.. Oh here is how I recreate it
I use a segue to present a new View
inside it I put another white view inside
I set this white view 4 constrains : top left right and height i set top left right to 16 and height to 200
and i put a imageview inside and to the left dunno if this has to do with it cus in my project there is a imageview
And now i put the bfpaperbutton right to the imageview
left top right height constrains again
and this time u will see it ripples out of bound
from bfpaperbutton.
Sorry I can't post picture...Its toooooo hard for me to post image from china..
from bfpaperbutton.
Try to set the background color of the button to something other than clear. Does the button's frame extend beyond the white view? It sounds like you aren't doing anything to prevent the frame of the button from extending beyond the white view. Did you set the button's right constraint to the edge of the white view? You need to set some kind of constraint to keep the button from extending beyond the white view.
This sounds like a typical Auto Layout issue and not a problem with the button itself.
from bfpaperbutton.
I have the right constrain.. but it only bounce out of bound for the first time. and the sencond time you press it's normal again.
all the button from that view is the same ..
from bfpaperbutton.
oh! I was able to replicate your issue! I will let you know when I've fixed it!
Thanks!
from bfpaperbutton.
thanks for ur work too!
from bfpaperbutton.
Hello!
I pushed version 1.6.1 which should fix this problem! Please let me know if it didn't work or if you find more bugs.
Thanks a lot!
from bfpaperbutton.
it works perfectly now~!
from bfpaperbutton.
Related Issues (20)
- the button does not work when it is created in a UITableViewCell HOT 12
- Fast touch up inside HOT 2
- tapCircleDiameter and different growth depending on longpress and normal touch HOT 5
- Use with Storyboard and IB?
- only really notice effects on long press HOT 8
- Swift 2.0 Version HOT 6
- How to use it with Storyboard? HOT 2
- Animations can't play when Buttons in UIScrollView HOT 3
- Run is not smooth HOT 3
- Animation on button doesn't work when button's parent ViewController is embed into a container view (i.e child viewController) HOT 4
- You have this bug HOT 3
- layoutSubviews ignores enabled property HOT 1
- bug HOT 2
- FEATURE REQUEST : Button Radius HOT 1
- Get rid of dots HOT 3
- Raised using Storyboard
- Crash iOS 9.2 below archive by xcode 10.1
- Problem : delegate for global animation
- Disabled state for raised button no longer removes shadow after tapped at least once. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bfpaperbutton.