fix wrong position of sub menu

This commit is contained in:
Jinhao
2015-12-22 23:47:56 +08:00
parent 9bb0e8eb34
commit 3856543daf
2 changed files with 8 additions and 8 deletions

View File

@@ -526,17 +526,16 @@ namespace nana
auto index = state_.active;
for (auto & m : menu_->items)
{
if (0 == index--)
break;
if (m.flags.splitter)
{
pos.y += 2;
continue;
}
if (0 == index)
break;
pos.y += _m_item_height() + 1;
--index;
}
tmstamp = state_.active_timestamp;