stack changes size when going to another card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- 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
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
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
-
- Livecode Opensource Backer
- Posts: 9450
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: stack changes size when going to another card
Can you post the stack here please?
Re: stack changes size when going to another card
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
if the cards or the stack do not have a corresponding script, check all current
FRONT and BACK scripts and all "stacksinuse".
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9749
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: stack changes size when going to another card
Right, and do a file-wide search for "rect", resize, revChangeWindowSize, that sort of thing...
Craig
Craig
-
- 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
There are no stacks in use and all front and back scripts are “rev” libraries.
-
- 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
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.
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.
-
- 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
ok, removing all my plugins removes issue.
now to hunt don the plugin responsible.
now to hunt don the plugin responsible.
-
- 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
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.
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.
-
- 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
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.
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.
Re: stack changes size when going to another card
This is VERY, VERY strange!
-
- Livecode Opensource Backer
- Posts: 9450
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: stack changes size when going to another card
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'?
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'?
-
- 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
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.
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.
Re: stack changes size when going to another card
Just a thought James - did you at any point use responsiveLayout with your app stack?
-
- Livecode Opensource Backer
- Posts: 9450
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: stack changes size when going to another card
What does 'dar 1' refer to?