Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

native.newTextField the button "select all" does not work, the button is cut, the button "paste"
Started by gleb26936 Oct 24 2018 06:14 AM

- - - - -
4 replies to this topic
native fields bugs help important
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gleb26936

[GLOBAL: userInfoPane.html]
gleb26936
  • Observer

  • 4 posts
  • Corona SDK

the button "select all" does not work, the button is cut, the button "paste", and also the selection of a word
 
widget_inp_field = native.newTextField( 10,500,200, 40)
widget_inp_field:addEventListener( "userInput", function() end )
widget_inp_field.isVisible=true
widget_inp_field.anchorX=0
widget_inp_field.anchorY=0
widget_inp_field.hasBackground = true
--object:resizeHeightToFitFont()
widget_inp_field.isFontSizeScaled = true
widget_inp_field:resizeHeightToFitFont() 
 
 
below - pictures - how it should works
 
I'm testing for android - and when I try to select a field, I get only the flickering of the upper bar
 
 
Thank you very much
 
 

 



[TOPIC: post.html]
#2

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

Hi Gleb,

 

Welcome to the forums. Can you please specify what device are you testing on and what Corona version are you using?



[TOPIC: post.html]
#3

gleb26936

[GLOBAL: userInfoPane.html]
gleb26936
  • Observer

  • 4 posts
  • Corona SDK

So, i don't know how does it works, but the problem solved to add

application =
{
content =
{
width = 320,
height = 480, 
scale = "letterbox",
 
in config file
 
 
Then the question arises. What does working capacity depend on?
Why is width and height so important?
 
Does performance depend on proportion?


[TOPIC: post.html]
#4

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

Here is a guide about config.lua

https://docs.coronalabs.com/guide/basics/configSettings/index.html

 

I would start with it.



[TOPIC: post.html]
#5

gleb26936

[GLOBAL: userInfoPane.html]
gleb26936
  • Observer

  • 4 posts
  • Corona SDK

Also, this bug can be reproduced with all the necessary settings. Under the influence of the variable "  coronaWindowMovesWhenKeyboardAppears = true,".




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: native, fields, bugs, help, important