stack height anomaly
Posted: Thu Aug 13, 2009 6:53 pm
I'm using Enterprise version 3.5 build 870
When I execute the following code I end up with a stack height of 630 instead of 280. Can you tell me why?
on mouseUp
local lvTop
local lvLocation
local lvLocationHorizontal
local lvLocationVertical
local lvCurrentHeight
local lvHalfCurrentHeight
local lvNewLocationVertical
put the location of this stack into lvLocation
put the first item of lvLocation into lvLocationHorizontal
put the second item of lvLocation into lvLocationVertical
put the height of this stack into lvCurrentHeight
put lvCurrentHeight/2 into lvHalfCurrentHeight
put lvLocationVertical-lvHalfCurrentHeight into lvTop
put lvTop + 140 into lvNewLocationVertical
put lvNewLocationVertical into lvLocationVertical
put lvLocationHorizontal & "," & lvLocationVertical into lvLocation
set the location of this stack to lvLocation
set the height of this stack to 280
set the width of this stack to 684
set the height of stack "stkConnections" to 310
end mouseUp
Thanks,
When I execute the following code I end up with a stack height of 630 instead of 280. Can you tell me why?
on mouseUp
local lvTop
local lvLocation
local lvLocationHorizontal
local lvLocationVertical
local lvCurrentHeight
local lvHalfCurrentHeight
local lvNewLocationVertical
put the location of this stack into lvLocation
put the first item of lvLocation into lvLocationHorizontal
put the second item of lvLocation into lvLocationVertical
put the height of this stack into lvCurrentHeight
put lvCurrentHeight/2 into lvHalfCurrentHeight
put lvLocationVertical-lvHalfCurrentHeight into lvTop
put lvTop + 140 into lvNewLocationVertical
put lvNewLocationVertical into lvLocationVertical
put lvLocationHorizontal & "," & lvLocationVertical into lvLocation
set the location of this stack to lvLocation
set the height of this stack to 280
set the width of this stack to 684
set the height of stack "stkConnections" to 310
end mouseUp
Thanks,