Page 1 of 1
stack size locked
Posted: Sun Dec 19, 2021 12:33 pm
by Samuele
hi, my livecode stack has some cards in it and now i encountered a problem when i move across card the stack size change and it is really annoying, only now has this problem arisen, any ides on how to lock the stack size for good (the "resizable" box is not checked)
thanks!
Re: stack size locked
Posted: Sun Dec 19, 2021 1:45 pm
by richmond62
If the resizable box is not checked then the only reason
I can think of is that somewhere in your stack there is
code which is resizing it.
Re: stack size locked
Posted: Sun Dec 19, 2021 6:15 pm
by jacque
Did you add a menu bar? If you're on a Mac the size will change depending whether the card contains the menubar or not.
Re: stack size locked
Posted: Sun Dec 19, 2021 6:27 pm
by dunbarx
when i move across card the stack size change
Do you mean when you move the cursor across the card?
Craig
Re: stack size locked
Posted: Sun Dec 19, 2021 10:56 pm
by Samuele
jacque wrote: ↑Sun Dec 19, 2021 6:15 pm
Did you add a menu bar? If you're on a Mac the size will change depending whether the card contains the menubar or not.
I am on mac, what do yo mean with "the card contains the menubar or not"?
Re: stack size locked
Posted: Sun Dec 19, 2021 10:58 pm
by Samuele
dunbarx wrote: ↑Sun Dec 19, 2021 6:27 pm
Do you mean when you move the cursor across the card?
Craig
when i move across cards for example a button with script "go to card info".
but it doesn't happen every time, that's what i can't understand, it seems random, i don't know...
Re: stack size locked
Posted: Mon Dec 20, 2021 12:20 am
by jacque
Samuele wrote: ↑Sun Dec 19, 2021 10:56 pm
jacque wrote: ↑Sun Dec 19, 2021 6:15 pm
Did you add a menu bar? If you're on a Mac the size will change depending whether the card contains the menubar or not.
I am on mac, what do yo mean with "the card contains the menubar or not"?
Sounds like you don't have a menu bar. On a Mac, if you use a custom menu bar, the stack will shrink so that the menus are at the top of the screen like all Mac apps. On Windows and Linux the menu bar shows at the top of the stack instead of at the top of the screen. If you didn't create a custom menu for your app then that's not the reason.
A screenshot of a normal-sized card and a differently-sized card might help us identify the problem. The only thing I know of that would cause a size change is if there is a menu bar on a card and you're on a Mac.
Re: stack size locked
Posted: Mon Dec 20, 2021 1:11 am
by dunbarx
Hi, sorry but:
when i move across cards for example a button with script "go to card info".
Do you mean when you navigate from one card to another? Jacque's concern about custom menus would not apply unless each card changed the existence of such a menu.
Craig
Re: stack size locked
Posted: Mon Dec 20, 2021 5:10 am
by jacque
I believe he does mean card navigation, and placing a menu on only one card happens more often than you'd think. It's natural to think that a menu only needs to be placed once. But I'm still not sure whether there's a menu bar involved in this case.
Re: stack size locked
Posted: Mon Dec 20, 2021 9:02 am
by richmond62
The OP keeps posting extremely cryptic things; it would be better for them, as well as
all the rest of us if they gave us more information each time.
Re: stack size locked
Posted: Mon Dec 20, 2021 5:06 pm
by Samuele
dunbarx wrote: ↑Mon Dec 20, 2021 1:11 am
Hi, sorry but:
when i move across cards for example a button with script "go to card info".
Do you mean when you navigate from one card to another?
Craig
yes

Re: stack size locked
Posted: Tue Dec 21, 2021 1:56 pm
by Klaus
card size = stack size!
If your cards change size during browsing, then there must be some scripts that do so!