Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float window size as negative value, float window sizes and positions as either numver or function #505

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rumi152
Copy link

@Rumi152 Rumi152 commented Jun 12, 2024

Floating window opts can have position at negative values to be relative to right side of window, I have added so they can have negative size as being n smaller than parent.
Second change is I have added possibility for size and position of floating windows to be fun(parent_size: {width: number, height: number}):number. It allows for more customization with runtime calculations

Float window size can be specified in negatives to set size n smaller
than parent. Float window position and size can be either number or
function that gets parent size as parameter and returns a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant