mirror of
https://github.com/archr-linux/fileman.git
synced 2026-07-13 03:19:08 -07:00
Adjust camera when renaming a long file.
This commit is contained in:
@@ -24,6 +24,8 @@ TextInput::TextInput(const std::string &p_title, SDL_Texture *p_icon, const std:
|
||||
m_dialogBody.h = m_dialogBackground.h - LINE_HEIGHT - DIALOG_BORDER;
|
||||
// Number of visible characters
|
||||
m_nbVisibleChars = round(static_cast<double>(m_dialogBody.w - 2*MARGIN_X) / g_charW);
|
||||
// Adjust camera
|
||||
adjustCamera();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user