Standalone (and stack in IDE) getting larger on each launch

jameshale james at thehales.id.au
Mon Apr 18 03:23:31 EDT 2016


solved.
I recently added a card to act as a sort of home card.
It was from this card I called a routine to adjust the stack height.
I discovered that all my cards EXCEPT for this one had a group menu
assigned.
I had forgotten to add this to the home card and only realised it might be
missing when I noticed that switching between this card and any other
changed the stack height by 22 pixels.
In my effort to compensate for this, at the time, unknown cause I had been
storing the stack height as a custom prop, which by itself was OK.
However depending on where I left my stack (whether on the home card or
another) this prop would get reset.
What I was seeing was it getting reset to the desired height plus 22
(because the home card did not have the menu bar installed) and this then
being saved as the desired height. Next time I open, the new desired height
is read but if I went to the home card it was again increased by 22 and
saved. Resulting in an ever increasing stack height.
Placing the same menubar group on the home card stopped this behaviour as LC
did not need to <reveal> the 22 pixels normally scrolled out of view to hide
the menubar.

Moral of the story - if you have a menubar installed make sure it is on all
cards in your stack that the use will see else you too will get changing
card sizes.



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Standalone-and-stack-in-IDE-getting-larger-on-each-launch-tp4703211p4703607.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list