aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/msglist.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index e3f3f14e..842e2911 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -22,6 +22,7 @@ import (
type MessageList struct {
Scrollable
height int
+ width int
nmsgs int
spinner *Spinner
store *lib.MessageStore
@@ -46,6 +47,7 @@ func (ml *MessageList) Invalidate() {
func (ml *MessageList) Draw(ctx *ui.Context) {
ml.height = ctx.Height()
+ ml.width = ctx.Width()
uiConfig := ml.aerc.SelectedAccountUiConfig()
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ',
uiConfig.GetStyle(config.STYLE_MSGLIST_DEFAULT))
@@ -338,6 +340,10 @@ func (ml *MessageList) Height() int {
return ml.height
}
+func (ml *MessageList) Width() int {
+ return ml.width
+}
+
func (ml *MessageList) storeUpdate(store *lib.MessageStore) {
if ml.Store() != store {
return