Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Trung Kien Tran

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

  • 47 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]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,315 posts
  • Corona Staff

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()?

 

Rob




[topic_controls]
[/topic_controls]