Merge pull request #8071 from dobrykafe/pr-popup-image-height

Editor: Make embedded image popup bigger at all times
This commit is contained in:
archimede67 2024-03-06 22:47:38 +00:00 committed by GitHub
commit de956c8db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4750,7 +4750,7 @@ void CEditor::RenderImagesList(CUIRect ToolBox)
if(Result == 2)
{
const std::shared_ptr<CEditorImage> pImg = m_Map.m_vpImages[m_SelectedImage];
const int Height = !pImg->m_External && IsVanillaImage(pImg->m_aName) ? 107 : (pImg->m_External ? 73 : 90);
const int Height = pImg->m_External ? 73 : 107;
static SPopupMenuId s_PopupImageId;
Ui()->DoPopupMenu(&s_PopupImageId, Ui()->MouseX(), Ui()->MouseY(), 140, Height, this, PopupImage);
}