1
This commit is contained in:
@@ -679,7 +679,7 @@ namespace BITKit
|
||||
self.schedule.Execute(() =>
|
||||
{
|
||||
self.scrollOffset = new Vector2(0, float.MaxValue);
|
||||
});
|
||||
}).ExecuteLater(1);;
|
||||
}
|
||||
public static void ScrollToBottomAutomatic(this ScrollView self, float delay = 0.02f)
|
||||
{
|
||||
@@ -707,7 +707,8 @@ namespace BITKit
|
||||
|
||||
public static Vector2 GetScreenPosition(this VisualElement self, Vector3 worldPosition)
|
||||
{
|
||||
var panel = (self.panel ?? self.parent.panel) ?? self.parent.parent.panel;
|
||||
var panel = self.panel;
|
||||
if (panel is null) return default;
|
||||
|
||||
var pos = RuntimePanelUtils
|
||||
.CameraTransformWorldToPanel(panel, worldPosition, Camera);
|
||||
|
Reference in New Issue
Block a user