johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

How to set size of form window? #1504

Open Bootta11 opened 4 months ago

Bootta11 commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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

Anyway, app is great. Keep good work.