FlaxEngine / FlaxEngine/FlaxEngine

UI Margin Bug with Stretch Anchor

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
713
Avg merge
7d 11h
Merged PRs (30d)
19

Description

**Issue description:**
Button margin collapses.

**Steps to reproduce:**
- Add a Horizontal Panel.
- Set the anchor of the Horizontal Panel to stretch all.
- Add a button to the Horizontal Panel.
- Set the anchor of the Button to stretch all.
- Button disappears.

You can see me stepping through the issue here:
https://drive.google.com/file/d/1DJrj1YX53L4yJDZ3QUEGDrvOMQpzfzL6/view?usp=sharing

It appears the Margin collapses as a result:
![image](https://user-images.githubusercontent.com/35228400/108620261-152ef680-747f-11eb-87ae-39db7279910f.png)

**Flax version:**
Current source version

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.