1

I used the following code like it said in livecode tutorial

on preOpenStack
  set the fullscreenmode of me to "exactFit"
end preOpenStack

But when I tested my app it's not work on all devices. For example it works on Galaxy Note 3 but on Galaxy Tab S. I can only see a small part of the app

So I change the code like this:

on preOpenStack
  set the fullscreenmode of Stackname to "exactFit"
end preOpenStack

Now it works on Galaxy Tab, but not on Galaxy Note 3

I used other fullscreenmode options like letterbox but nothing changed.

Mark
  • 2,380
  • 11
  • 29
  • 49
alighasem
  • 11
  • 3
  • Please, provide a slightly longer code fragment, so we can see what sets the variable `Stackname`. – Mark Oct 04 '15 at 12:53

2 Answers2

0

You can try to set the fullScreenMode of a stack before opening it. Create another stack and give it the following script:

on openStack
  send "initialiseStack" to me in 0 millisecs
  pass openStack
end openStack

on initialiseStack
  set the fullScreenMode of stack "Your Stack" to exactFit
  go stack "Your Stack"
end initialiseStack

This gives LiveCode time to start up properly before opening your stack. Sometimes it provides a fix, if somehow the screen isn't drawn properly.

I don't know about any bugs that would prevent the fullScreenMode from working correctly on specific devices, but you may want to submit a new bug at livecode.com.

Mark
  • 2,380
  • 11
  • 29
  • 49
  • Thanks but nothing changed I used main stack and substack but none of them work Still "this stack" work for not 3 and "stack name" work for galaxy tab S – alighasem Oct 05 '15 at 10:47
  • If you provide more of the relevant code in your question, I (or we) might be able to help you better. – Mark Oct 05 '15 at 21:38
  • I testing simple app that just contain a stack and background. I put the code that mentioned above in preopenstack there is not any other code – alighasem Oct 06 '15 at 11:21
0

At last I found source of the problem.

It is the language of device.

If language of device be RTL then app dose not run correctly.

alighasem
  • 11
  • 3