Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

box cannot be aligned to any location #417

Open
sinanakyazici opened this issue Jun 26, 2021 · 0 comments
Open

box cannot be aligned to any location #417

sinanakyazici opened this issue Jun 26, 2021 · 0 comments

Comments

@sinanakyazici
Copy link

sinanakyazici commented Jun 26, 2021

Hi, I have 5 boxes in layout. I cannot set their position. I want to put a box location where i want.

`
var blessed = require("blessed");
var screen = blessed.screen({
smartCSR: true,
});

var layout = blessed.layout({
parent: screen,
top: "center",
left: "center",
width: "100%",
height: "100%",
border: "line",
style: {
bg: "red",
border: {
fg: "blue",
},
},
});

blessed.box({
parent: layout,
width: 20,
content: "Hello World 1",
align: "center",
height: 3,
border: "line",
top: 10,
left: 10,
});

blessed.box({
parent: layout,
width: 20,
content: "Hello World 2",
align: "center",
height: 3,
border: "line",
top: 10,
right: 10,
});

blessed.box({
parent: layout,
width: 20,
content: "Hello World 3",
align: "center",
height: 3,
border: "line",
bottom: 10,
left: 10,
});

blessed.box({
parent: layout,
width: 20,
content: "Hello World 4",
align: "center",
height: 3,
border: "line",
bottom: 10,
right: 10,
});

blessed.box({
parent: layout,
width: 20,
content: "Hello World 5",
align: "center",
height: 3,
border: "line",
top: 'center',
left: 'center',
});
screen.render();
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant