Kaydet (Commit) 2d29dae5 authored tarafından Szymon Kłos's avatar Szymon Kłos

tdf#107129: correct showing order

Change-Id: I2e72b8e0d3ff8ef9de16d634d85d43ef2da9ca75
Reviewed-on: https://gerrit.libreoffice.org/41361Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst aff5951e
......@@ -107,10 +107,11 @@ public:
pChild++;
}
auto pChildR = m_aSortedChilds.rbegin();
// Show higher priority controls if we already have enough space
while (pChild != m_aSortedChilds.end())
while (pChildR != m_aSortedChilds.rend())
{
DropdownBox* pBox = static_cast<DropdownBox*>(*pChild);
DropdownBox* pBox = static_cast<DropdownBox*>(*pChildR);
nCurrentWidth -= pBox->GetOutputWidthPixel() + get_spacing();
pBox->ShowContent();
......@@ -122,7 +123,7 @@ public:
break;
}
pChild++;
pChildR++;
}
VclHBox::Resize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment