-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement features for Input text box #7308
Conversation
'rotate3d(0,0,1,' + (this._object.getAngle() % 360) + 'deg)'; | ||
this._input.style.padding = this._object.getPadding() + 'px'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the padding should have a minimum of 0, otherwise you might have some weird results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be handled in the method getPadding
directly
@@ -113,7 +131,10 @@ namespace gdjs { | |||
this._borderWidth = objectData.content.borderWidth; | |||
this._disabled = objectData.content.disabled; | |||
this._readOnly = objectData.content.readOnly; | |||
|
|||
this._padding = objectData.content.padding || 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
… value. Fixed padding issue on pixi renderer
Co-authored-by: AlexandreS <[email protected]>
Co-authored-by: AlexandreS <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Padding and maxLength are working as they should right now. They dont affect the editor render, but they work when you launch the game. Text align does not. It is based on the functionnement of 'InputTypes' properties, on my copy, it always align on the right. I tried to hardcode it left in textinputruntimeobject.ts on line 38, in jsExtension.js line 256 and line 692