revert to latest spec

This commit is contained in:
Atul 2019-06-19 00:31:01 +02:00
parent 0beebabd10
commit a39165a659

View File

@ -17,10 +17,10 @@ YGSize extrautils::measureQtWidget (YGNodeRef node, float width, YGMeasureMode w
if(widget){
QSize size = widget->sizeHint();
return YGSize{
width : static_cast<float>(size.width()),
height : static_cast<float>(size.height()),
.width = static_cast<float>(size.width()),
.height = static_cast<float>(size.height()),
};
}
}
return YGSize{width : 0, height : 0};
return YGSize{ .width = 0, .height = 0};
}