mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-07-01 23:19:51 +03:00
fix(ui): fix height calculation of CLayoutFrame
This commit is contained in:
parent
a15b5de3bf
commit
ba21fb2994
@ -11,10 +11,10 @@
|
|||||||
STORM_EXPLICIT_LIST(CLayoutFrame, resizeLink) LayoutFrame::s_resizePendingList;
|
STORM_EXPLICIT_LIST(CLayoutFrame, resizeLink) LayoutFrame::s_resizePendingList;
|
||||||
|
|
||||||
float SynthesizeSide(float center, float opposite, float size) {
|
float SynthesizeSide(float center, float opposite, float size) {
|
||||||
if (center != CFramePoint::UNDEFINED && opposite != CFramePoint::UNDEFINED) {
|
if (opposite != CFramePoint::UNDEFINED && size != 0.0f) {
|
||||||
return center + center - opposite;
|
|
||||||
} else if (opposite != CFramePoint::UNDEFINED && size != 0.0f) {
|
|
||||||
return opposite + size;
|
return opposite + size;
|
||||||
|
} else if (center != CFramePoint::UNDEFINED && opposite != CFramePoint::UNDEFINED) {
|
||||||
|
return center + center - opposite;
|
||||||
} else if (center != CFramePoint::UNDEFINED && size != 0.0f) {
|
} else if (center != CFramePoint::UNDEFINED && size != 0.0f) {
|
||||||
return center + (size * 0.5f);
|
return center + (size * 0.5f);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user