Fix #8971: Resize QueryStrings with interface scale change. (#10281)

* Fix: Use width of caret symbol '_' for text entry.

This replaces an arbitrary pixel width with the space actually required.

* Fix #8971: Update QueryString sizes with interface scale change.
This commit is contained in:
PeterN
2022-12-25 00:40:55 +00:00
committed by GitHub
parent 3451c0a82c
commit 23eec0b7b3
3 changed files with 25 additions and 5 deletions

View File

@@ -276,6 +276,7 @@ public:
const QueryString *GetQueryString(uint widnum) const;
QueryString *GetQueryString(uint widnum);
void UpdateQueryStringSize();
virtual const char *GetFocusedText() const;
virtual const char *GetCaret() const;