Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Textfield is full screen with landscape, how to fix it?
Started by Trung Kien Tran May 12 2018 12:39 AM

1 reply to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]

Trung Kien Tran

[GLOBAL: userInfoPane.html]
Trung Kien Tran
  • Enthusiast

  • 55 posts
  • Corona SDK

My application uses textfield for users searching for songs. However, textfield is full screen with landscape, how to fix it?

Attached Files

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,147 posts
  • Corona SDK

I know this doesn't answer the question, but is there a reason your app has to support landscape? There isn't anything wrong with portrait-only apps.


It looks like you're using some form of Android, and I suspect this may be the normal behavior. The keyboard when in landscape mode has to take up about half the screen, so it may just make sense to have it fill the screen.


Just to make sure, you're using native.newTextField() not native.newTextBox()?