set but flexible width height?

78 views
Skip to first unread message

dave

unread,
Sep 29, 2020, 5:05:14 PM9/29/20
to yad-common
I have this

yad --notebook --tab-pos=left --title="$f" --window-icon="$myicon" --key=$KEY --tab="text" --tab="wikilin" --width=800 --height=680 --center --button="update:4" --button="edit:2" --button="close:0"

that starts at a pretty good width and height, but I'd like to be able to change it with the mouse dragging the corner.  This allows to get bigger but not smaller than the initially set size.

1) is there a way to allow for this behavior?
2) alternatively is there a way to have the dialog set itself to the width of the longest line of text and the height of the number of columns? (so a big text would be big and a small text body would be small - i.e. base it on the first tab contents

I tried by replacing "--width=800 --height=680" with "--expand" but that didn't work.

Thanks, 
- Dave

dave

unread,
Oct 1, 2020, 3:02:06 PM10/1/20
to yad-common
actually nevermind.  I decided to not set geometry at all and instead size the window using wmctrl
Reply all
Reply to author
Forward
0 new messages