Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Fix ScrollView display for all tabs #1175

Merged
merged 3 commits into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

- Fixed a bug where the `TransformSynchronization` MonoBehaviour would not reset when disabled. [#1169](https://github.com/spatialos/gdk-for-unity/pull/1169)
- Fixed a bug where the `UnlinkGameObjectFromEntity` method in the `EntityGameObjectLinker` would not cleanup the `gameObjectToComponentsAdded` dictionary. [#1169](https://github.com/spatialos/gdk-for-unity/pull/1169)
- Fixed a bug where the Network Analyzer would not properly render all components/commands in the scroll view. [#1175](https://github.com/spatialos/gdk-for-unity/pull/1175)

### Internal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public void Update()
{
var scrollView = this.Q<ScrollView>("container");
var count = scrollView.childCount;
var viewportBound = scrollView.contentViewport.localBound;
var viewportBound = scrollView.contentViewport.worldBound;

// Update all visible items in the list
for (var i = 0; i < count; i++)
{
var element = scrollView[i];
if (viewportBound.Overlaps(element.localBound))
if (viewportBound.Overlaps(element.worldBound))
{
UpdateElement(i, element);
}
Expand Down