Add support to resize floating container in percentage
resize set is modified to accept both 'px' and 'ppt' height and width. Fixes #2816.
This commit is contained in:
@ -258,14 +258,16 @@ state RESIZE_SET:
|
||||
-> RESIZE_WIDTH
|
||||
|
||||
state RESIZE_WIDTH:
|
||||
'px'
|
||||
mode_width = 'px', 'ppt'
|
||||
->
|
||||
height = number
|
||||
-> RESIZE_HEIGHT
|
||||
|
||||
state RESIZE_HEIGHT:
|
||||
'px', end
|
||||
-> call cmd_resize_set(&width, &height)
|
||||
mode_height = 'px', 'ppt'
|
||||
->
|
||||
end
|
||||
-> call cmd_resize_set(&width, $mode_width, &height, $mode_height)
|
||||
|
||||
# rename workspace <name> to <name>
|
||||
# rename workspace to <name>
|
||||
|
Reference in New Issue
Block a user