Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to have both shadow and borderRadius? #13

Open
tempurai opened this issue Jan 15, 2018 · 5 comments
Open

How to have both shadow and borderRadius? #13

tempurai opened this issue Jan 15, 2018 · 5 comments

Comments

@tempurai
Copy link

tempurai commented Jan 15, 2018

Which platform(s) does your issue occur on?

  • iOS/Android/Both
  • iOS/Android versions
  • emulator or device. What type of device?

iOS emulator

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
<SwipeLayout class="card-container"
     *ngFor="let card of cards"
      (loaded)="swipeLayoutLoaded($event)"
      (swipeLeft)="swipeLeftCallback($event)"
      (swipeRight)="swipeRightCallback($event)"
      [animationState]="swipeLayoutAnimated"
      [gestureMode]="gestureMode">

      <StackLayout width="85%" height="80%" shadow="2">
            <Label></Label>
      </StackLayout>
</SwipeLayout>

basically I wish to have both shadow and border radius on StackLayout. Yet, since they don't work together, I just wondering is there any workarounds?

@ghost
Copy link

ghost commented Jan 25, 2018

Have the same problem on Android

<StackLayout *ngFor="let workout of workouts" [ngStyle]="{'background-image': workout.background }" class="workout-box"> <Label [text]="workout.name"></Label> </StackLayout>

The background disapears when I add shadow

@MeMartijn
Copy link

I have the same problem.

+1

@domzinhuu
Copy link

Hi guys.. you need set bg color in a variable AndroidData or IOSData Exemple:

  btnPrincipalShadow: AndroidData = {
    elevation: 6,
    bgcolor: "#1e3a3d",
    shape: ShapeEnum.OVAL
  };

Here i set elevation level, the bgColor and the shape if you are using border radius use the shape oval.

and then put in your html

[shadow]="btnPrincipalShadow"

@vahidvdn
Copy link

vahidvdn commented Jul 9, 2018

+1

1 similar comment
@suparnavg
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants