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

[iOS only] Percentage margin of layouts not possible · Issue #2097 · NativeScript/nativescript-cli · GitHub

[iOS only] Percentage margin of layouts not possible #2097

Description

I'm trying to to set the margin of a GridLayout/StackLayout with a percentage value like 30%. In the android emulator everything works fine, but the iOS emulator only takes fixed values like 87.

Example:
start.xml:

    <StackLayout orientation="vertical">
        <Label text="test" />
        <Label text="test" />
        <Label text="test" />
        <Label text="test" />
    </StackLayout>

start.css:

StackLayout
{
    margin: 30% 15% 30% 15%;
    background-color: #FAFAFA;
    border-width: 1;
    border-style: solid;
    border-color: #C7C7CC;
    border-radius: 1;
}

doesn't work as well (only for iOS)

    <StackLayout orientation="vertical" width="75%" height="45%">
        <Label text="test" />
        <Label text="test" />
        <Label text="test" />
        <Label text="test" />
    </StackLayout>

PS: i'm not sure if this is the right section for this, first i just googled nativescript bugtracker and now i saw this section here is for cli only

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL