Don't use margins for screen keyboard, because it's easy to misclick space
This commit is contained in:
parent
388594270f
commit
f86b2657c1
@ -125,7 +125,7 @@ void ScreenKeyboard::init()
|
||||
{
|
||||
const core::dimension2d<u32>& frame_size = irr_driver->getFrameSize();
|
||||
|
||||
int margin = 15;
|
||||
int margin = 0;
|
||||
int w = int(frame_size.Width * m_percent_width);
|
||||
int h = int(frame_size.Height * m_percent_height);
|
||||
int x = frame_size.Width/2 - w/2;
|
||||
|
@ -1786,6 +1786,6 @@ void CGUIEditBox::openScreenKeyboard()
|
||||
setTextMarkers(CursorPos, CursorPos);
|
||||
calculateScrollPos();
|
||||
|
||||
new GUIEngine::ScreenKeyboard(0.98f, 0.40f, this);
|
||||
new GUIEngine::ScreenKeyboard(1.0f, 0.40f, this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user