fix(ios): background styles after frame changed by safe area (#10661)

This commit is contained in:
Dimitris-Rafail Katsampas
2025-01-13 05:51:33 +02:00
committed by GitHub
parent 87742638d1
commit 1e86ed9da8
9 changed files with 47 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
import { StackLayoutBase } from './stack-layout-common';
import { CoreTypes } from '../../../core-types';
import { View } from '../../core/view';
import { Position, View } from '../../core/view';
import { layout } from '../../../utils';
import { Trace } from '../../../trace';
@@ -101,7 +101,7 @@ export class StackLayout extends StackLayoutBase {
}
}
private layoutVertical(left: number, top: number, right: number, bottom: number, insets: { left; top; right; bottom }): void {
private layoutVertical(left: number, top: number, right: number, bottom: number, insets: Position): void {
const paddingLeft = this.effectiveBorderLeftWidth + this.effectivePaddingLeft + insets.left;
const paddingTop = this.effectiveBorderTopWidth + this.effectivePaddingTop + insets.top;
const paddingRight = this.effectiveBorderRightWidth + this.effectivePaddingRight + insets.right;
@@ -135,7 +135,7 @@ export class StackLayout extends StackLayoutBase {
});
}
private layoutHorizontal(left: number, top: number, right: number, bottom: number, insets: { left; top; right; bottom }): void {
private layoutHorizontal(left: number, top: number, right: number, bottom: number, insets: Position): void {
const paddingLeft = this.effectiveBorderLeftWidth + this.effectivePaddingLeft + insets.left;
const paddingTop = this.effectiveBorderTopWidth + this.effectivePaddingTop + insets.top;
const paddingRight = this.effectiveBorderRightWidth + this.effectivePaddingRight + insets.right;