mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
fix(ui): correct linking logic in CLayoutFrame::AddToResizeList
This commit is contained in:
parent
a6e6d36ac1
commit
db6a83bfb2
@ -74,9 +74,9 @@ void CLayoutFrame::AddToResizeList() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto frame = LayoutFrame::s_resizePendingList.Head(); frame; frame = LayoutFrame::s_resizePendingList.Link(frame)->Next()) {
|
||||||
CLayoutFrame* dependent = nullptr;
|
CLayoutFrame* dependent = nullptr;
|
||||||
|
|
||||||
for (auto frame = LayoutFrame::s_resizePendingList.Head(); frame; frame = LayoutFrame::s_resizePendingList.Link(frame)->Next()) {
|
|
||||||
for (int32_t i = 0; i < FRAMEPOINT_NUMPOINTS; i++) {
|
for (int32_t i = 0; i < FRAMEPOINT_NUMPOINTS; i++) {
|
||||||
auto point = frame->m_points[i];
|
auto point = frame->m_points[i];
|
||||||
|
|
||||||
@ -84,13 +84,17 @@ void CLayoutFrame::AddToResizeList() {
|
|||||||
dependent = frame;
|
dependent = frame;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (dependent) {
|
if (dependent) {
|
||||||
LayoutFrame::s_resizePendingList.LinkNode(this, 2, dependent);
|
LayoutFrame::s_resizePendingList.LinkNode(this, STORM_LIST_LINK_BEFORE, dependent);
|
||||||
} else {
|
|
||||||
LayoutFrame::s_resizePendingList.LinkToTail(this);
|
this->m_resizeCounter = 6;
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LayoutFrame::s_resizePendingList.LinkToTail(this);
|
||||||
|
|
||||||
this->m_resizeCounter = 6;
|
this->m_resizeCounter = 6;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user