yoga null element fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6089a3a549
commit
562541d6d3
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -66,7 +66,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: './hs_err_pid*.log', fingerprint: true
|
|
||||||
wrap(
|
wrap(
|
||||||
[
|
[
|
||||||
$class: 'Xvfb',
|
$class: 'Xvfb',
|
||||||
|
|||||||
@ -355,7 +355,7 @@ public class Window implements DrawableElement, ContainerElement, NavigableEleme
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void applyYoga(int parentX, int parentY) {
|
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.YGNodeStyleSetWidth(parentWindowYogaNode, Globals.WINDOW_WIDTH);
|
||||||
Yoga.YGNodeStyleSetHeight(parentWindowYogaNode, Globals.WINDOW_HEIGHT);
|
Yoga.YGNodeStyleSetHeight(parentWindowYogaNode, Globals.WINDOW_HEIGHT);
|
||||||
//calculate yoga layout
|
//calculate yoga layout
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user