Skip to content

Commit

Permalink
Fix TextInput having extra margins on iOS (#5277)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPasteau committed May 9, 2023
1 parent f5d89c6 commit 212c58f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 212c58f

Please sign in to comment.