我正在尝试使用以下代码
在键盘激活上移动子包local lStackLoc,lStackSize
on openstack
set the fullscreenmode of me to "exactFit"
put the loc of this stack into lStackLoc
put the effective working screenRect into lStackSize
end openstack
----------------------
on keyboardactivated
put the effective working screenRect into tStackSize
set itemdel to comma
put item 4 of lStackSize - item 4 of tStackSize into tKeyboardHeight
put item 2 of lStackLoc - tKeyboardHeight into tNewLocY
put item 2 of lStackLoc & "," & tNewLocY into tStackLoc
move stack "mainsub" to tStackLoc
end keyboardactivated
----------------------
on keyboardDeactivated
move stack "mainsub" to lStackLoc
end keyboardDeactivated
堆栈不移动。我错过了什么,是否有可能移动一个亚组,即使它的一部分将在屏幕外?
答案 0 :(得分:1)
您的应用程序是在移动设备上运行还是在桌面系统上运行?
如果在移动设备上运行,堆栈始终使用屏幕的矩形显示,并且您一次只能显示一个堆栈。 fullscreenMode确定堆栈相对于屏幕rect的大小以及堆栈内容的显示方式,但不能在移动屏幕上移动堆栈。