account for long search strings when opening the results window
in "search in files" closes PR 12673
This commit is contained in:
parent
aa8b280f1c
commit
526b659616
|
@ -57,8 +57,12 @@
|
||||||
;; opens a window and creates the thread that does the search
|
;; opens a window and creates the thread that does the search
|
||||||
(define (open-search-window search-info)
|
(define (open-search-window search-info)
|
||||||
(define frame (new search-size-frame%
|
(define frame (new search-size-frame%
|
||||||
[name (format (string-constant mfs-drscheme-multi-file-search-title)
|
[name
|
||||||
(search-info-search-string search-info))]))
|
(let ([fmt-s (string-constant mfs-drscheme-multi-file-search-title)])
|
||||||
|
(format
|
||||||
|
fmt-s
|
||||||
|
(gui-utils:trim-string (search-info-search-string search-info)
|
||||||
|
(- 200 (string-length fmt-s)))))]))
|
||||||
(define panel (make-object saved-vertical-resizable% (send frame get-area-container)))
|
(define panel (make-object saved-vertical-resizable% (send frame get-area-container)))
|
||||||
(define button-panel (make-object horizontal-panel% (send frame get-area-container)))
|
(define button-panel (make-object horizontal-panel% (send frame get-area-container)))
|
||||||
(define open-button (make-object button% (string-constant mfs-open-file) button-panel
|
(define open-button (make-object button% (string-constant mfs-open-file) button-panel
|
||||||
|
|
Loading…
Reference in New Issue
Block a user