Code Monkey home page Code Monkey logo

Comments (11)

bfeher avatar bfeher commented on July 18, 2024

Hi!

Sure, can you show me some code (if any) and maybe a screenshot of what's going on?

Thanks.

from bfpaperbutton.

aa2246740 avatar aa2246740 commented on July 18, 2024

img_5448
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.

bfeher avatar bfeher commented on July 18, 2024

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):

screen shot 2015-01-13 at 09 19 07

bfpaperbuttontestgif

Please check your layout and let me know if you have any more questions :)

from bfpaperbutton.

aa2246740 avatar aa2246740 commented on July 18, 2024

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.

aa2246740 avatar aa2246740 commented on July 18, 2024

Sorry I can't post picture...Its toooooo hard for me to post image from china..

from bfpaperbutton.

bfeher avatar bfeher commented on July 18, 2024

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.

aa2246740 avatar aa2246740 commented on July 18, 2024

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.

bfeher avatar bfeher commented on July 18, 2024

oh! I was able to replicate your issue! I will let you know when I've fixed it!
Thanks!

from bfpaperbutton.

aa2246740 avatar aa2246740 commented on July 18, 2024

thanks for ur work too!

from bfpaperbutton.

bfeher avatar bfeher commented on July 18, 2024

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.

aa2246740 avatar aa2246740 commented on July 18, 2024

it works perfectly now~!

from bfpaperbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.