mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-12 09:24:30 +03:00
Improve UIMenu positioning (allow to take into account the trigger button to position).
This commit is contained in:
@@ -449,7 +449,7 @@ LLMChatUI::LLMChatUI( PluginManager* manager ) :
|
||||
|
||||
menu->runOnMainThread( [this, menu] {
|
||||
auto pos( mChatAttach->getScreenPos() );
|
||||
UIMenu::findBestMenuPos( pos, menu );
|
||||
UIMenu::findBestMenuPos( pos, menu, nullptr, nullptr, mChatAttach );
|
||||
menu->showAtScreenPosition( pos );
|
||||
} );
|
||||
} );
|
||||
@@ -516,7 +516,7 @@ LLMChatUI::LLMChatUI( PluginManager* manager ) :
|
||||
|
||||
menu->runOnMainThread( [this, menu] {
|
||||
auto pos( mChatMore->getScreenPos() );
|
||||
UIMenu::findBestMenuPos( pos, menu );
|
||||
UIMenu::findBestMenuPos( pos, menu, nullptr, nullptr, mChatMore );
|
||||
menu->showAtScreenPosition( pos );
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user