FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feature request: support percentages for width and height · Issue #412 · NativeScript/NativeScript · GitHub

Feature request: support percentages for width and height #412

Description

My use case is wanting layout items to take up a certain portion of the screen across screen resolutions. For example suppose I'm building this UI:

I want to say that the <TextBox> and <Button>s are width: 80% (or that their parent <StackLayout>) is, but currently I have to pick an arbitrary numeric amount.

I can get the behavior I seek if I create elements in JS, by getting the screen width and using that to derive percentage-based widths, but that's a lot of work. I'd love to be able to type %, in CSS as well as layouts—especially <GridLayout>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL