Interesting behaviour in scrollviewarea, any work around?
Posted: 26 Sep 2013, 15:42
I tried to file a bug report for this but got an error saying I'm not allowed to post bug reports saying:

I'll post the bug report here for now and hopefully get some insight into it...
Summary:
Scrollview area does not clip children properly
In the Unity editor where the editor 'game' window is docked in the main unity window scrollview area does not clip children, however if the window is taken outside of the main editor window scrollviewarea does clip children
Steps To Reproduce:
Create scroll view area, place grid inside it, this is the xaml:
Attach the following C# script to the camera which has the NoesisGUIPanel Component attached:
Screenshot of issue: http://i.imgur.com/XYEojTe.png
I'm not sure how far ranging this problem is, if it will happen in deployed applications or if it only happens when the Unity 'game' window is docked in the main Unity editor window..
Forbidden
You don't have permission to access /bugs/bug_report.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I'll post the bug report here for now and hopefully get some insight into it...
Summary:
Scrollview area does not clip children properly
In the Unity editor where the editor 'game' window is docked in the main unity window scrollview area does not clip children, however if the window is taken outside of the main editor window scrollviewarea does clip children
Steps To Reproduce:
Create scroll view area, place grid inside it, this is the xaml:
Code: Select all
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:MyControl="clr-namespace:MyControl"
xmlns:UpgradeUI="clr-namespace:UpgradeUI" xmlns:GameUI="clr-namespace:GameUI"
mc:Ignorable="d"
Height="100"
Width="300"
x:Name="ButtonScrollArea"
>
<Grid x:Name="Buttons" />
</ScrollViewer>Code: Select all
using UnityEngine;
using System.Collections;
using Noesis;
using UnityEditor;
public class TestNoe : MonoBehaviour
{
void Awake()
{
var gui = GetComponent<NoesisGUIPanel>();
var root = gui.GetRoot<FrameworkElement>();
Grid g = root.FindName<Grid>("Buttons");
for (int i = 0; i < 10; i++)
{
Noesis.Button b = new Noesis.Button();
b.SetContent("TEST");
b.SetHeight(30);
b.SetWidth(100);
b.SetVerticalAlignment(VerticalAlignment.Top);
b.SetMargin(new Thickness(0, i * 30, 0, 0));
g.GetChildren().Add(b);
}
}
}
I'm not sure how far ranging this problem is, if it will happen in deployed applications or if it only happens when the Unity 'game' window is docked in the main Unity editor window..