mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix TextInput having extra margins on iOS (#5277)
This commit is contained in:
@@ -58,6 +58,7 @@ namespace gdjs {
|
||||
this._input.style.outline = 'none';
|
||||
this._input.style.pointerEvents = 'auto'; // Element can be clicked/touched.
|
||||
this._input.style.display = 'none'; // Hide while object is being set up.
|
||||
this._input.style.boxSizing = 'border-box'; // Important for iOS, because border is added to width/height.
|
||||
|
||||
this._input.addEventListener('input', () => {
|
||||
if (!this._input) return;
|
||||
|
Reference in New Issue
Block a user