ios选择图片功能,结果列表扩大
This commit is contained in:
1 parent
510cd11049
commit
fe65b83c89
12 files changed
+295
-31
No files matched your search
@@ -47,13 +47,18 @@ public class MapListController : PFUIPanel
|
||||
{
|
||||
#if (UNITY_ANDROID || UNITY_IOS)
|
||||
topContainer = transform.Find("Top");
|
||||
var rectTransform = transform.GetComponent<RectTransform>();
|
||||
var offsetMax = rectTransform.offsetMax;
|
||||
rectTransform.offsetMax = new Vector2(0, offsetMax.y);
|
||||
var offsetMin = rectTransform.offsetMin;
|
||||
rectTransform.offsetMin = new Vector2(0, offsetMin.y);
|
||||
//var rectTransform = transform.GetComponent<RectTransform>();
|
||||
//var offsetMax = rectTransform.offsetMax;
|
||||
//rectTransform.offsetMax = new Vector2(0, offsetMax.y);
|
||||
//var offsetMin = rectTransform.offsetMin;
|
||||
//rectTransform.offsetMin = new Vector2(0, offsetMin.y);
|
||||
var widthDelta = (transform.parent.parent.GetComponent<RectTransform>().sizeDelta.x -
|
||||
transform.GetComponent<RectTransform>().sizeDelta.x)/2;
|
||||
Debug.Log(widthDelta);
|
||||
//筛选按钮
|
||||
var topRect = topContainer.GetComponent<RectTransform>();
|
||||
topRect.localPosition = new Vector3(topRect.localPosition.x - widthDelta
|
||||
, topRect.localPosition.y, topRect.localPosition.z);
|
||||
if (!App.topRectStartX.HasValue)
|
||||
{
|
||||
App.topRectStartX = topRect.localPosition.x;
|
||||
|
||||
@@ -15,6 +15,9 @@ public class ResultListPanelController : PFUIPanel
|
||||
{
|
||||
UIManager.SwitchAccount();
|
||||
});
|
||||
var rect = transform.GetComponent<RectTransform>();
|
||||
rect.offsetMax = new Vector2(rect.offsetMax.x, 0);
|
||||
rect.offsetMin = new Vector2(rect.offsetMin.x, 0);
|
||||
}
|
||||
public override void Show()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user