Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Widget newTableView uses wrong screen width!
Started by mimetic Feb 20 2013 07:26 AM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mimetic

[GLOBAL: userInfoPane.html]
mimetic
  • Contributor

  • 161 posts
  • Corona SDK

I just spent two days finding this problem: the default width of a newTableView widget — the screen width — changes if you change orientation. That's fine, but if your build.settings doesn't support portrait, then the width of the screen should not change, right?

I was not setting the screen width when I created a newTableView widget, and it was using the rotated screen width (768px) not the landscape screen width (1024px).

If I made a mistake, please, please let me know...I just lost two days under deadline

Argh!!!

	orientation =
	{
		default = "landscapeRight",
		supported =
		{
			--"portrait", 
			--"portraitUpsideDown",
			"landscapeLeft", 
			"landscapeRight",

		},
	},
uid: 37366 topic_id: 36135 reply_id: 336135


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

Are you building for iOS or for Android?
uid: 199310 topic_id: 36135 reply_id: 143518


[TOPIC: post.html]
#3

mimetic

[GLOBAL: userInfoPane.html]
mimetic
  • Contributor

  • 161 posts
  • Corona SDK

I just spent two days finding this problem: the default width of a newTableView widget — the screen width — changes if you change orientation. That's fine, but if your build.settings doesn't support portrait, then the width of the screen should not change, right?

I was not setting the screen width when I created a newTableView widget, and it was using the rotated screen width (768px) not the landscape screen width (1024px).

If I made a mistake, please, please let me know...I just lost two days under deadline

Argh!!!

	orientation =
	{
		default = "landscapeRight",
		supported =
		{
			--"portrait", 
			--"portraitUpsideDown",
			"landscapeLeft", 
			"landscapeRight",

		},
	},
uid: 37366 topic_id: 36135 reply_id: 66135


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

Are you building for iOS or for Android?
uid: 199310 topic_id: 36135 reply_id: 143518



[topic_controls]
[/topic_controls]