yoga null element fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-08-28 22:29:07 -04:00
parent 6089a3a549
commit 562541d6d3
2 changed files with 1 additions and 2 deletions

1
Jenkinsfile vendored
View File

@ -66,7 +66,6 @@ pipeline {
}
}
steps {
archiveArtifacts artifacts: './hs_err_pid*.log', fingerprint: true
wrap(
[
$class: 'Xvfb',

View File

@ -355,7 +355,7 @@ public class Window implements DrawableElement, ContainerElement, NavigableEleme
@Override
public void applyYoga(int parentX, int parentY) {
if(this.yogaNode != Element.NULL_YOGA_ELEMENT){
if(this.yogaNode != Element.NULL_YOGA_ELEMENT && parentWindowYogaNode != Element.NULL_YOGA_ELEMENT){
Yoga.YGNodeStyleSetWidth(parentWindowYogaNode, Globals.WINDOW_WIDTH);
Yoga.YGNodeStyleSetHeight(parentWindowYogaNode, Globals.WINDOW_HEIGHT);
//calculate yoga layout