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

How to set size of form window? #1504

Open
Bootta11 opened this issue Jul 12, 2024 · 2 comments
Open

How to set size of form window? #1504

Bootta11 opened this issue Jul 12, 2024 · 2 comments

Comments

@Bootta11
Copy link

Hi,

Im trying to set constant form size(200x200px) but no luck. Every time I call this script div have different height and width(1 time height is 200, other time is width 200, next time is width 200 and height 200 and that goes on on random).

Here is my form config:

let {noteContent, noteFolder} = await form({
    html: `
    <div  class="p-4" style="height: 200px">
        <textarea name="noteContent" placeholder="Node Content..."></textarea>
        </br>
        <input type="text" name="noteFolder" placeholder="Text Input" value="${defaultNoteFolder}"/>
    </div>`,
    height: 200,
    width: 200
})

What am I doing wrong?

@johnlindquist
Copy link
Owner

@Bootta11 You're not doing anything wrong. It's a bug. I'm trying to get Script Kit v3 out in the new couple of weeks and I'll hopefully have it resolved.

@Bootta11
Copy link
Author

@johnlindquist Ok, thanks for answer. Looking forward for v3.

Anyway, app is great. Keep good work.

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

No branches or pull requests

2 participants