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

[iOS only] Percentage margin of layouts not possible · Issue #2850 · NativeScript/NativeScript · GitHub

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

Description

From @martinwepner on October 5, 2016 16:11

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

Copied from original issue: NativeScript/nativescript-cli#2097

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