Where did my stack go?!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Where did my stack go?!
Development was proceeding well then--suddenly--the stack window had shrunk vertically by 90% and all elements disappeared from cards. I don't think I did anything, but I'm a rookie; can't be sure. And the project was saved like that. Did the event occur and I unwittingly saved my project? Probably, but again, I can't be sure. Backup is a day old. Worked A LOT on project yesterday; would sure like not to lose all that. Fortunately, scripts are not lost. Nor are project elements: cards, graphics, buttons and fields. They're all in the project browser, and all up to date. If I have to place them back on the cards I wouldn't be crazy about that, but it would be better than having to redo all of yesterday's work in my day-old backup. What am I missing here? Help!!!
Bruce
Bruce
Re: Where did my stack go?!
Hi Bruce,
no idea what happend, but since all controls etc. are still visible in the Project Browser,
maybe you just need to adjust width/height of your stack back to the original size?
Best
Klaus
no idea what happend, but since all controls etc. are still visible in the Project Browser,
maybe you just need to adjust width/height of your stack back to the original size?
Best
Klaus
Re: Where did my stack go?!
Thanks. All is well. The elements were still on the page but scrolled way up above, out of sight. I appreciate your help!
Re: Where did my stack go?!
This sort of thing happens in one other way as well, that the loc of the stack is somehow set to a position off screen. Check both if this happens again.
Craig
Craig
Re: Where did my stack go?!
Somehow my stack and main card dimensions went nuts. Height was in the 2000s. I'm pretty sure that's not something I did inadvertently. I was able to fix the stack property but it's grayed out in the card property window. I dread that my problems with "disappearing" card elements will continue. 

-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Where did my stack go?!
Well; here's a thought:
In each cardScript inside an on preOpenCard thing set all your dimensions and positions of objects explicitly
[Yes, I know doing all 'that' is a pain in the bum]
then, with any luck, no-one is going to get any negative surprises.
In each cardScript inside an on preOpenCard thing set all your dimensions and positions of objects explicitly
[Yes, I know doing all 'that' is a pain in the bum]
then, with any luck, no-one is going to get any negative surprises.
Re: Where did my stack go?!
Everything is grayed out except for the 2nd location field. The numbers in the grayed out fields respond to the up and down arrows, but those changes have no effect. The values revert after closing the properties dialogue.
- Attachments
-
- Card Properties Window.jpg (27.36 KiB) Viewed 7365 times
Last edited by bd525 on Sat Aug 15, 2020 3:47 pm, edited 1 time in total.
Re: Where did my stack go?!
I'll follow your suggestions, richmond62. Thanks!
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Where did my stack go?!
One of the very simple reasons your card sizes and positions are greyed out is because a card cannot have a different size
or position to the stack it belongs to.
or position to the stack it belongs to.
Re: Where did my stack go?!
That makes sense, richmond62, and it's the reason I tried to edit the numbers to bring the card and stack into agreement. But I can't! And: Setting card width and height in preOpenStack doesn't work. Just causes an error.
Re: Where did my stack go?!
That's basically because the card inherits the stack dimensions. Change the stack properties, and the card fills it. You can read a card's height or width, (because they are inherited - you might as well read the stack measurements) but not set them.
Re: Where did my stack go?!
I tried that, SparkOut, and nothing. Changed the stack height a bit, but the card height stayed at 2450. Am I misunderstanding?
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Where did my stack go?!
Well, "objously" . . . however think about this:Setting card width and height in preOpenStack doesn't work.
pseudocode . . .
on preOpenCard
set the width of stack "EDDYKOISY" to the dimensions I want this card to be
end preOpenCard
-
Re: Where did my stack go?!
That didn't work either, richmond62.