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

fix: expose missing css background* properties on View · NativeScript/NativeScript@d0bbd85 · GitHub

Commit d0bbd85

Browse files
committed
fix: expose missing css background* properties on View
1 parent 043cbf3 commit d0bbd85

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎tns-core-modules/ui/core/view/view-common.ts‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
import { createViewFromEntry } from "../../builder";
2525
import { StyleScope } from "../../styling/style-scope";
2626
import { LinearGradient } from "../../styling/linear-gradient";
27+
import { BackgroundRepeat } from "../../styling/style-properties";
2728

2829
export * from "../../styling/style-properties";
2930
export * from "../view-base";
@@ -472,6 +473,27 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
472473
this.style.backgroundImage = value;
473474
}
474475

476+
get backgroundSize(): string {
477+
return this.style.backgroundSize;
478+
}
479+
set backgroundSize(value: string) {
480+
this.style.backgroundSize = value;
481+
}
482+
483+
get backgroundPosition(): string {
484+
return this.style.backgroundPosition;
485+
}
486+
set backgroundPosition(value: string) {
487+
this.style.backgroundPosition = value;
488+
}
489+
490+
get backgroundRepeat(): BackgroundRepeat {
491+
return this.style.backgroundRepeat;
492+
}
493+
set backgroundRepeat(value: BackgroundRepeat) {
494+
this.style.backgroundRepeat = value;
495+
}
496+
475497
get minWidth(): Length {
476498
return this.style.minWidth;
477499
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL