Giter VIP home page Giter VIP logo

Comments (6)

amyleecodes avatar amyleecodes commented on May 14, 2024

Can you upload a zip file showing the issue? It may have something to do with some IB constraints.

from pulley.

Alex293 avatar Alex293 commented on May 14, 2024

I don't have time right now but you can see it with the demo, in the content vc you have a 8 height constraint to the top and when you run you have more (16). Tho if you load the same vc by code you don't have this spacing

from pulley.

Alex293 avatar Alex293 commented on May 14, 2024

Another way to spot it is that you've set the height of the collapsed part to 68, added a view of 68 but the view isn't completely shown (you need to scroll a bit to seen the table top separator). Anyway i've looked a the code and the interface builder of the demo and this space is set nowhere. I suspect that this is kind of included with the embed segue. This need further investigation but for now I'm gonna stick with my solution to set my content drawer in view did appear

from pulley.

amyleecodes avatar amyleecodes commented on May 14, 2024

Thanks for the details! I'll take a look this week and see what I can find.

from pulley.

amyleecodes avatar amyleecodes commented on May 14, 2024

The problem is that by default Interface Builder connects it to the "Top margin" of the view it's contained in. Container Views apparently have a default top margin of 10pt.

If you select the constraint and open the side menu to adjust it then you can tell it to constrain it to the "Superview.Top" property of the view, rather than the "Superview.Top Margin"

See the screenshot below and un-checkmark the "Relative to Margin". Voîla! Problem fixed.

screen shot 2016-10-25 at 9 20 30 pm

I also fixed it in the sample project. Nice catch!

from pulley.

Alex293 avatar Alex293 commented on May 14, 2024

In deed solved, thanks

from pulley.

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.