Margin to be set while Drawing only.

Background: #165
This commit is contained in:
Jakub Sobon 2019-03-28 22:48:10 -04:00
parent c755affe43
commit 461a242338
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 0 additions and 12 deletions

View File

@ -84,12 +84,6 @@ func New(t terminalapi.Terminal, opts ...Option) (*Container, error) {
if err := applyOptions(root, opts...); err != nil {
return nil, err
}
ar, err := root.opts.margin.apply(root.area)
if err != nil {
return nil, err
}
root.area = ar
return root, nil
}
@ -105,12 +99,6 @@ func newChild(parent *Container, opts []Option) (*Container, error) {
if err := applyOptions(child, opts...); err != nil {
return nil, err
}
ar, err := child.opts.margin.apply(child.area)
if err != nil {
return nil, err
}
child.area = ar
return child, nil
}