summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-07 22:53:30 +0800
committerruki <[email protected]>2020-05-07 11:21:01 +0800
commit1712bff8d610c2b4bf86ea06276a6566e5b0c760 (patch)
treed3b0c1e6f811b2cad922d6213ed9f56076c51c91
parent1718990711ee294dd83e7adbddacca9ee2b8696f (diff)
update changelog
-rw-r--r--CHANGELOG.md2
-rw-r--r--xmake/actions/global/menuconf.lua6
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd1e0358b..c16e8728b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
### Change
* [#771](https://github.com/xmake-io/xmake/issues/771): Check includedirs, linkdirs and frameworkdirs
+* [#774](https://github.com/xmake-io/xmake/issues/774): Support ltui windows resize for `xmake f --menu`
## v2.3.3
@@ -728,6 +729,7 @@
### 改进
* [#771](https://github.com/xmake-io/xmake/issues/771): 检测includedirs,linkdirs和frameworkdirs的输入有效性
+* [#774](https://github.com/xmake-io/xmake/issues/774): `xmake f --menu`可视化配置菜单支持窗口大小Resize调整
## v2.3.3
diff --git a/xmake/actions/global/menuconf.lua b/xmake/actions/global/menuconf.lua
index bd1c26437..6a4b4875c 100644
--- a/xmake/actions/global/menuconf.lua
+++ b/xmake/actions/global/menuconf.lua
@@ -67,6 +67,12 @@ function app:mconfdialog()
return self._MCONFDIALOG
end
+-- on resize
+function app:on_resize()
+ self:mconfdialog():bounds_set(rect{1, 1, self:width() - 1, self:height() - 1})
+ application.on_resize(self)
+end
+
-- filter option
function app:_filter_option(name)
local options =