fix: apply menu item origin as an offset (#917)

Add `origin` values to the existing item rectangle instead of replacing its coordinates.
This commit is contained in:
mo authored and GitHub committed 2026-07-19 21:32:10 +02:00
1 parent 786ccc14d3
commit 9c56a28ef4
2 files changed
+10 -9

No files matched your search

@@ -255,8 +255,8 @@ namespace menu::item_scope_sequences
{
assert(state->m_current_item);
state->m_current_item->m_rect.x = MenuMatcherFactory::TokenNumericExpressionValue(state, result);
state->m_current_item->m_rect.y = MenuMatcherFactory::TokenNumericExpressionValue(state, result);
state->m_current_item->m_rect.x += MenuMatcherFactory::TokenNumericExpressionValue(state, result);
state->m_current_item->m_rect.y += MenuMatcherFactory::TokenNumericExpressionValue(state, result);
}
};