mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8071 from dobrykafe/pr-popup-image-height
Editor: Make embedded image popup bigger at all times
This commit is contained in:
commit
de956c8db9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue