stack changes size when going to another card

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

stack changes size when going to another card

Post by jameshale » Tue Nov 07, 2023 3:15 pm

I have a stack which changes its size when I go from card 1 to card 2.
I create a new stack, add two new cards, now there are three cards in the stack.
Open the Project browser and double click on card 2 of the stack.
The dimensions of the stack changes.
Double click on card 3, they change again.
Double click on card 1 they change back to the original stack size.
There are no script in the stack and I have added nothing to it or any of the cards.
What's going on? :?:
I am on a Silicon Mac, Sonoma, LC9.6.11rc1
BTW in the properties for the stack "resizable" is Unchecked.

could not attach a video but here are three snapshots
cd1x.png
cd2x.png
cd3x.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: stack changes size when going to another card

Post by richmond62 » Tue Nov 07, 2023 4:23 pm

Can you post the stack here please?

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: stack changes size when going to another card

Post by Klaus » Tue Nov 07, 2023 6:05 pm

Hi James,

if the cards or the stack do not have a corresponding script, check all current
FRONT and BACK scripts and all "stacksinuse".

Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: stack changes size when going to another card

Post by dunbarx » Tue Nov 07, 2023 9:28 pm

Right, and do a file-wide search for "rect", resize, revChangeWindowSize, that sort of thing...

Craig

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Tue Nov 07, 2023 9:38 pm

sizes.livecode.zip
the stack
(722 Bytes) Downloaded 63 times

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Tue Nov 07, 2023 10:30 pm

There are no stacks in use and all front and back scripts are “rev” libraries.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Tue Nov 07, 2023 10:47 pm

As I cannot search some of the front/back scripts as they are pwd protected perhaps you mean to search within the offending stack?
The stack in question has no scripts at all.

I posted the stack I used to produce the images posted earlier. If, on downloading it and trying what I did does not change the size for you then it is obviously something specific to my setup. I thought it might have been the responsive layout library but checking the stack and each card shows no responsive layout properties, so that went nowhere.

This issue surfaced in an app I am currently working on that used the responsive layout. In trying to track what was happening I placed a breakpoint before the “open card” command. Tracing the script, the size change takes place after open card message is sent but before the opencard message is intercepted by the card’s “on opencard” handler.
Hence my test stack. (As submitted)

If it is my particular set up then I guess my next step is to remove all plugins and see if persists.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Wed Nov 08, 2023 12:04 am

ok, removing all my plugins removes issue.
now to hunt don the plugin responsible. :(

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Wed Nov 08, 2023 12:15 am

hmm. adding all plugins and issue did not return.
reopened the stack I am working on and issue does return.
removed all plugins and issue persists.
opened test stack and issue is present here too.
so there is something in my stack that introduces this not only in itself but also to other stack created in the current IDE session.
might be time to call support.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Wed Nov 08, 2023 6:02 am

I have contacted support.
further twist.
open LC
open test stack - all works AS EXPECTED
open my app stack
size changes on card change
check out test stack. Now it has gone back to the size changes too.
Checked front and backscripts, before and after loading my app - NO change

So definitely something in my app stack.
did search on my stack. noting relating to dimensions (rect, width, height) of stack EXCEPT getting them.
will report back if I locate the issue.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: stack changes size when going to another card

Post by Klaus » Wed Nov 08, 2023 11:14 am

This is VERY, VERY strange! :shock:

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: stack changes size when going to another card

Post by richmond62 » Wed Nov 08, 2023 11:20 am

Yes: your stack size & shape stays the same regardless of the card one is on.

How it being open at the same time as your other stack being open affects its size & shape escapes me.

HOWEVER: how about checking in the other stack that there isn't some script that contains the word 'toplevel'?

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: stack changes size when going to another card

Post by jameshale » Wed Nov 08, 2023 3:40 pm

no, no 'toplevel' anywhere.

I have at least restricted my app stack to becoming square on the card change.
It now takes whatever the height of dar 1 is and keeps that but sets the width equal to the height.
And no, there is nowhere in any of the scripts that set the "width", height" or "rect" of the stack.

As for the test stack.
If I open it after opening my app stack, changing cards swaps the width with the height, i.e. 320 x 400 become 400 x 320 etc
This continues to be the case even after closing and removing from memory my app stack.

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: stack changes size when going to another card

Post by stam » Wed Nov 08, 2023 4:06 pm

Just a thought James - did you at any point use responsiveLayout with your app stack?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: stack changes size when going to another card

Post by richmond62 » Wed Nov 08, 2023 4:14 pm

What does 'dar 1' refer to?

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”