提交 d5af2a20 编写于 作者: S SteVen Batten

fixes issue where hidden element orientation is not updated when hidden

上级 5df1ca38
......@@ -698,13 +698,19 @@ export class View implements IView {
}
layout(width: number, height: number, orientation: Orientation): void {
if (!this.visible) {
if (!this.visible && this.orientation === orientation) {
return;
}
this.view.layout(width, height, orientation);
this.width = width;
this.height = height;
if (this.visible) {
this.view.layout(width, height, orientation);
this.width = width;
this.height = height;
}
this.orientation = orientation;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册