Fix review message not filling entire space
Adding an attachment, switching to a different tab, and switching back to the review message caused the "filled space" in the review message to disappear, since there was one too many rows in the layout.
This commit is contained in:
parent
d931bbeff1
commit
a669233614
|
@ -553,7 +553,7 @@ type reviewMessage struct {
|
||||||
|
|
||||||
func newReviewMessage(composer *Composer, err error) *reviewMessage {
|
func newReviewMessage(composer *Composer, err error) *reviewMessage {
|
||||||
spec := []ui.GridSpec{{ui.SIZE_EXACT, 2}, {ui.SIZE_EXACT, 1}}
|
spec := []ui.GridSpec{{ui.SIZE_EXACT, 2}, {ui.SIZE_EXACT, 1}}
|
||||||
for range composer.attachments {
|
for i := 0; i < len(composer.attachments)-1; i++ {
|
||||||
spec = append(spec, ui.GridSpec{ui.SIZE_EXACT, 1})
|
spec = append(spec, ui.GridSpec{ui.SIZE_EXACT, 1})
|
||||||
}
|
}
|
||||||
// make the last element fill remaining space
|
// make the last element fill remaining space
|
||||||
|
|
Loading…
Reference in New Issue