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

Hidden multiline staticText item breaks the code #82

Open
joonaspaakko opened this issue May 15, 2020 · 0 comments
Open

Hidden multiline staticText item breaks the code #82

joonaspaakko opened this issue May 15, 2020 · 0 comments
Labels
.BUG Something isn't working Priority: Medium

Comments

@joonaspaakko
Copy link
Owner

joonaspaakko commented May 15, 2020

There's an extra linebreak after the text that doesn't translate into SUI multiline properly and ends up just inserting a linebreak before the tail-end of the line. I guess this would be kind of an issue without hiding as well.

Noticed this problem in this issue: #81

/*
Code for Import https://scriptui.joonas.me — (Triple click to select): 
{"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"enabled":true,"varName":"","windowType":"Dialog","creationProps":{"su1PanelCoordinates":false,"maximizeButton":false,"minimizeButton":false,"independent":false,"closeButton":true,"borderless":false,"resizeable":false},"text":"","preferredSize":[0,0],"margins":20,"orientation":"column","spacing":10,"alignChildren":["center","top"]}},"item-28":{"id":28,"type":"StaticText","parentId":0,"style":{"enabled":true,"varName":null,"creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Label Color\n","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null},"hidden":true}},"order":[0,28],"settings":{"importJSON":true,"indentSize":false,"cepExport":false,"includeCSSJS":true,"showDialog":true,"functionWrapper":false,"afterEffectsDockable":false,"itemReferenceList":"None"},"activeId":28}
*/ 

// DIALOG
// ======
var dialog = new Window("dialog"); 
    dialog.orientation = "column"; 
    dialog.alignChildren = ["center","top"]; 
    dialog.spacing = 10; 
    dialog.margins = 20; 

// var statictext1 = dialog.add("statictext", undefined, undefined, {name: "statictext1"}); 
    // statictext1.text = "Label Color
"; 

dialog.show();
@joonaspaakko joonaspaakko added .BUG Something isn't working Priority: Medium labels May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.BUG Something isn't working Priority: Medium
Projects
None yet
Development

No branches or pull requests

1 participant