Page 1 of 1

Stack sizes broken after upgrade to 7

Posted: Wed Feb 11, 2015 9:38 pm
by MrFollies
I'm struggling with an annoying problem.

Each time I open my project (iPad project, developing with LC7 under MacOS), the size of the stack is reset to 769x740.
The bottom 1/3 of my stack cannot be seen.

With the property inspector I reset the size to 769x1025 (what I want) and I can work with the stack.
I save the stack, but opening it next time, the sizes are once again reset.

Has anyone else seen this issue?

Re: Stack sizes broken after upgrade to 7

Posted: Wed Feb 11, 2015 10:00 pm
by Klaus
Hi MrFollies,

yes, but that ONLY happend if the display was "smaller" than the stack.
I think in that case LC resizes the stack so some parts my be cut off.

Is that the case here?
I mean smaller screen resolution than stack size?


Best

Klaus

Re: Stack sizes broken after upgrade to 7

Posted: Thu Feb 12, 2015 1:35 am
by MrFollies
Thanks for the reply Klaus.

In my case it does not have anything to do with the size of the screen. The Stack can fit ok.

Re: Stack sizes broken after upgrade to 7

Posted: Thu Feb 12, 2015 2:55 am
by Simon
I think I am still with Klaus in that you also have to account for the IDE Menu bar being part of the unavailable space.
At any rate;

Code: Select all

on openStack
   if the platform is "MacOS" then 
      set the width of this stack to 769
      set the height of this stack to 1025
      set the loc of this stack to screenLoc -- or a couple of numbers 1245,573
   end if
end openStack
That will fix it for you.

Simon

Re: Stack sizes broken after upgrade to 7

Posted: Thu Feb 12, 2015 7:13 am
by MrFollies
Thanks Simon.

I thought of that... I guess it feels a little strange that I'd have to put some code into an app, to basically make it readable in the IDE, but in any case it works.
I think I found out why it's resizing it.

It does have something to with the screen size. I've set the "Scale" to 0.75 which makes it small enough to be viewed on the MacOS screen. Unfortunately, Livecode does not take this into account when deciding if it should shrink the Stack window.

I call it a bug ;-) But hardly an important one. I wonder if there's a bug-reporting-tracking system for LiveCode.

-D

Re: Stack sizes broken after upgrade to 7

Posted: Thu Feb 12, 2015 7:26 am
by Simon