screen adjust
This commit is contained in:
@@ -12,12 +12,16 @@ MyUtl.getUIContent = function(panel, top, bottom, forceCal)
|
||||
-- if _ContentRect and (not forceCal) then
|
||||
-- return _ContentRect
|
||||
-- end
|
||||
local sizeAdjust = UIRoot.GetPixelSizeAdjustment(panel.gameObject)
|
||||
local height = Screen.height * sizeAdjust
|
||||
top = top or _TopHeight_
|
||||
bottom = bottom or _BottomHeight_
|
||||
local sizeAdjust = UIRoot.GetPixelSizeAdjustment(panel.gameObject)
|
||||
local offsetRect = NGUITools.offsetRect
|
||||
top = top + offsetRect.y * height
|
||||
bottom = bottom + offsetRect.w * height
|
||||
|
||||
_sizeAdjust = sizeAdjust
|
||||
_ContentRect =
|
||||
Vector4(0, (bottom - top) / 2, Screen.width * sizeAdjust, Screen.height * sizeAdjust - (bottom + top))
|
||||
_ContentRect = Vector4(0, (bottom - top) / 2, Screen.width * sizeAdjust, height - (bottom + top))
|
||||
return _ContentRect
|
||||
end
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
r8 !trCRM/resVer/IOS/VerCtl/other.ver8,3a5c78cf709d4f90cdf928c353e70b5d8 $trCRM/resVer/IOS/VerCtl/priority.ver8,28e93b115966a7060ac16df962d0105d
|
||||
r8 $trCRM/resVer/IOS/VerCtl/priority.ver8,2e44df0897bb7c1047865bfe9db57cf98 !trCRM/resVer/IOS/VerCtl/other.ver8,7a09ad6b904ba91bb4fe22525a5a7217
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user