Stack sizes broken after upgrade to 7

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Stack sizes broken after upgrade to 7

Post by MrFollies » Wed Feb 11, 2015 9:38 pm

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?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stack sizes broken after upgrade to 7

Post by Klaus » Wed Feb 11, 2015 10:00 pm

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

MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Re: Stack sizes broken after upgrade to 7

Post by MrFollies » Thu Feb 12, 2015 1:35 am

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stack sizes broken after upgrade to 7

Post by Simon » Thu Feb 12, 2015 2:55 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Re: Stack sizes broken after upgrade to 7

Post by MrFollies » Thu Feb 12, 2015 7:13 am

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stack sizes broken after upgrade to 7

Post by Simon » Thu Feb 12, 2015 7:26 am

I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply