mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:35:42 +00:00
Compact command help cards (#8428)
This commit is contained in:
+2
-2
@@ -110,8 +110,8 @@ namespace eagle {
|
||||
var width = Mathf.Min(size.x - 32f, 760f);
|
||||
var titleHeight = title.GetPreferredValues(titleText, width, 0f).y;
|
||||
var bodyHeight = textField.GetPreferredValues(bodyText, width - 36f, 0f).y;
|
||||
var maxHeight = Mathf.Max(200f, Mathf.Min(size.y * 0.8f, 320f));
|
||||
var height = Mathf.Clamp(titleHeight + bodyHeight + 96f, 200f, maxHeight);
|
||||
var maxHeight = Mathf.Max(160f, Mathf.Min(size.y * 0.55f, 240f));
|
||||
var height = Mathf.Clamp(titleHeight + bodyHeight + 44f, 160f, maxHeight);
|
||||
var margin = 18f;
|
||||
|
||||
_rectTransform.anchorMin = new Vector2(0.5f, 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user