make Quick Search dialog a little taller
This commit is contained in:
@@ -515,6 +515,9 @@ func (c *Controller) ShowQuickSearch() {
|
||||
}
|
||||
c.ClosePopUpOnEscape(pop)
|
||||
c.haveModal = true
|
||||
min := qs.MinSize()
|
||||
height := fyne.Max(min.Height, fyne.Min(min.Height*1.5, c.MainWindow.Canvas().Size().Height*0.7))
|
||||
pop.Resize(fyne.NewSize(min.Width, height))
|
||||
pop.Show()
|
||||
c.MainWindow.Canvas().Focus(qs.SearchEntry)
|
||||
}
|
||||
|
||||
@@ -173,8 +173,8 @@ func newQuickSearchResult(parent *QuickSearch) *quickSearchResult {
|
||||
title: widget.NewLabel(""),
|
||||
secondary: widget.NewRichText(),
|
||||
}
|
||||
qs.title.Wrapping = fyne.TextTruncate
|
||||
qs.secondary.Wrapping = fyne.TextTruncate
|
||||
qs.title.Truncation = fyne.TextTruncateEllipsis
|
||||
qs.secondary.Truncation = fyne.TextTruncateEllipsis
|
||||
qs.ExtendBaseWidget(qs)
|
||||
qs.imageLoader = util.NewThumbnailLoader(parent.imgSource, func(im image.Image) {
|
||||
qs.image.SetImage(im, false)
|
||||
|
||||
Reference in New Issue
Block a user