For https://github.com/cogentcore/core/issues/1011
(t *testing.T)
| 167 | |
| 168 | // For https://github.com/cogentcore/core/issues/1011 |
| 169 | func TestRenderElementCutOff(t *testing.T) { |
| 170 | b := NewBody() |
| 171 | b.Styler(func(s *styles.Style) { |
| 172 | s.Min.X.Em(50) |
| 173 | }) |
| 174 | sp := NewSplits(b) |
| 175 | NewFrame(sp) |
| 176 | fr := NewFrame(sp) |
| 177 | NewTextField(fr).Styler(func(s *styles.Style) { |
| 178 | s.Max.X.Zero() |
| 179 | }) |
| 180 | NewButton(fr).SetIcon(icons.Send) |
| 181 | b.AssertRender(t, "render/element-cut-off") |
| 182 | } |
| 183 | |
| 184 | // For https://github.com/cogentcore/core/issues/1012 |
| 185 | func TestRenderGridCenteredFrame(t *testing.T) { |
nothing calls this directly
no test coverage detected