gyscos / gyscos/cursive

Full width TextView not stretched as expected

Open
#300 2 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

Bug Report/Asking for Help

# Problem description

Following code snippet (excerpt from modified example code):
```rust
let mut panes = LinearLayout::vertical();

panes.add_child(BoxView::with_full_screen(DummyView));
panes.add_child(TextView::new("© 2018 Gal Anonym")
.with_id("status")
.full_width()
.fixed_height(1));

siv.screen_mut().add_transparent_layer(panes);
```
shows:
![obraz](https://user-images.githubusercontent.com/4925040/49345809-fc5d7f00-f681-11e8-97a0-299fe7c48307.png)
While I expect the bottom bar to be extended to maximum screen width. I can't tell whether it's a bug in the code or I don't understand documentation. However, maybe somebody can help.

# Environment

* Operating system: Windows 10
* Backend used: pancurses
* Current locale (run `locale` in a terminal): No such thing in Windows, but my main language is Polish :-)
* Cursive version (from crates.io, from git, ...): 0.9.3-alpha.0

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.