Giter Site home page Giter Site logo

Improve layout about presentation HOT 3 CLOSED

hyperoslo avatar hyperoslo commented on May 15, 2024
Improve layout

from presentation.

Comments (3)

3lvis avatar 3lvis commented on May 15, 2024

@vadymmarkov this is done now?

from presentation.

vadymmarkov avatar vadymmarkov commented on May 15, 2024

@3lvis I think yes.

from presentation.

fmaylinch avatar fmaylinch commented on May 15, 2024

Sorry if this is not the place to ask this, and if my question was already resolved.

How can I use autolayout with this library? I see the examples and the doc are hardcoding the view frames, while the content positioning is relative (with percentages). How can I combine these two different approaches?

What I've been doing is hardcoding the frames too, and calculating the percentage they represent relative to the view. That way I can combine those calculated percentages and the percentages that Position objects expect.

For example, I add an image with size 200x100. Then calculate the size percentage to the screen width and height. Then say I position this image at 0.6, 0.2. Now I can, for example, add another image aligned to the first one.

Any help will be appreciated. Thank you!

from presentation.

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.