We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a887e4 commit 1b5d5dbCopy full SHA for 1b5d5db
src/components/BoxView/RNBoxView.ts
@@ -31,18 +31,14 @@ const setBoxViewProps = (
31
*/
32
export class RNBoxView extends QWidget implements RNComponent {
33
native: any;
34
- _layout?: QBoxLayout;
35
initialProps?: BoxViewProps;
36
children: Array<NodeWidget<any>> = [];
37
-
38
get layout() {
39
- return this.layout;
+ return super.layout as QBoxLayout | undefined;
40
}
41
42
- set layout(l: QBoxLayout) {
43
- this._layout = l;
+ set layout(l: QBoxLayout | undefined) {
+ super.layout = l;
44
45
46
setProps(newProps: BoxViewProps, oldProps: BoxViewProps): void {
47
if (this.layout) {
48
setBoxViewProps(this, newProps, oldProps);
0 commit comments