mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02: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;
|
||||
}
|
||||
|
||||
for (auto frame = LayoutFrame::s_resizePendingList.Head(); frame; frame = LayoutFrame::s_resizePendingList.Link(frame)->Next()) {
|
||||
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++) {
|
||||
auto point = frame->m_points[i];
|
||||
|
||||
@ -84,13 +84,17 @@ void CLayoutFrame::AddToResizeList() {
|
||||
dependent = frame;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dependent) {
|
||||
LayoutFrame::s_resizePendingList.LinkNode(this, 2, dependent);
|
||||
} else {
|
||||
LayoutFrame::s_resizePendingList.LinkToTail(this);
|
||||
LayoutFrame::s_resizePendingList.LinkNode(this, STORM_LIST_LINK_BEFORE, dependent);
|
||||
|
||||
this->m_resizeCounter = 6;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
LayoutFrame::s_resizePendingList.LinkToTail(this);
|
||||
|
||||
this->m_resizeCounter = 6;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user