CS5 ScriptUI dialogs open with no minimum width or height

Hi There,
Running my script as ScriptUI in CS5 seems to cause a strange issue with window drawing / resizing.  I am unable to reproduce the issue in CS6 or CC.  In some cases, when I run the script targeting CS5 from within ESTK, the initial window panel will appear very small and requires a user to resize it until it becomes totally visible.  Also, when I spawn a new dialog window from within a button's click handler, the dialog displays, but appears to have no specified or determined width or height.  As a workaround, I set the "resizing" for the dialog to true even though I would prefer not to let the user resize this particular dialog.  I tried setting preferredSize on almost all the elements so that I could minimize the use of automatic layout, but that didn't seem to do the trick.
Has anybody encountered this?  Does CS5 require that the Bounds property is set?  It doesn't seem to be the case for CS6+
If anyone has encountered this type of UI issue in CS5, any help or suggestions to fix would be appreciated.
Thank you for your time and help!
--Arie

You can't "minimize the use of automatic layout". Either you use it, either you don't.
I can't speak for others, but when using layout.layout(true), i often have to do many tries until "it behaves as i wanted to" (which actually means: until i find how things should be written).
There are few rules though, and one is that preferredSize is irreliable, better use minimumSize and maximumSize (can't remember where i read that but i did, probably in the Javascript Tools Guide).
What i do all the time is create a big group (in the exemple below it is called 'content') within the window and specify min or max dimensions for that group, not the window itself.
Also, if you dont want the window to be resized, just set its creation property 'resizeable' to false.
var win = new Window("palette", "myScript", undefined, {resizeable: false});
win.alignChildren = ['left', 'top'];
win.margins=8;
win.content = win.add("group{ orientation:'column', margins: 0, spacing: 5, alignChildren:['left', 'top'],\
                                            " /* more stuff here */  + "\
win.content.minimumSize = [500,300];
win.layout.layout(true);
win.layout.resize();
win.show();
If this doesnt help, please provide a bit of your code. I have CS5.5 and never encountered your issue.
Xavier.

Similar Messages

  • How do I resolve Dialog opens with Adobe Premiere Elements.exe – no disk

    i purchased Adobe Photoshop and Premiere Elements 13 and s/n.
    I have a desktop running win 7.
    I installed Photoshop and Premiere Elements as a trial and entered s/n's as required.
    I can open Photoshop without problem.
    Whenever I try to open Premiere Elements, a dialog opens with this info.
    Adobe premiere elements.exe – no disk
    There is no disk in the drive. Please insert a disk into the drive\device\harddisk1\dr1.
    Buttons –cancel, try again or continue
    I would like to resolve this issue.
    Any assistance is appreciated,
    William

    William
    What you describe is a known issue with Premiere Elements 13/13.1.
    Adobe has given us the fix which appears to be deletion of the OldFilm.AEX file.
    Windows 7, 8, or 8.1 64 bit
    Local Disk C
    Program Files
    Adobe
    Adobe Premiere Elements 13
    Plug-ins
    Common
    NewBlue
    and in the NewBlue Folder is the OldFilm.AEX file that you delete or disable by renaming the file from OldFilm.AEX to OldFilm.AEXOLD.
    Please let us know if it works for you as it has for others.
    Thank you.
    ATR

  • How to set a minimum width and height for a stage or scene?

    Hello,
    Does anyone how to set a minimum width and height for a stage or scene?
    I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window.
    In JavaFX 2.1 beta SDK for Mac OS, the Stage class has setMinWidth() and setMinHeight() functions which work very well.
    I'm wondering what's the equivalent way to do that when using the FX SDK for Windows.
    Any help is appreciated!
    Thanks.

    I was wondering how to enforce a minimum stage size with JavaFX 2.0.3.The same flickering way you are currently doing it. See: http://javafx-jira.kenai.com/browse/RT-15200 "Need a way to set the minimum size of a window"

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

  • CS5 - Can't "Open With" Photoshop in Bridge?

    I have CS5 installed and I am my defaults for Opening is Elements 8 on my
    Vista machine and "nothing" on my XP laptop.
    When on either machine and I right click an image, Photoshop is NOT an option to Open With.
    If I go to preferences, I can manually set the default, but this is not an acceptable solution as I need my defaults to be something different.
    For example, I need the default for my Nikon RAW files to remain Nikon Capture NX2, but I want the ability to right click and select the application I want to use.
    How to I add Photoshop (or any other application) to the "Open With" List?

    What you see on other programs in the list (aside the default, which is defined for Bridge only) of programs which a certain filetype were openend in the OS once.
    For example (close Bridge / CS) and choose Quicktime as the default program for opening TIF in XP and you will have it in the list after Bridge was started again.
    I'm afraid you need to do that for every application (close Bridge, choose a different default app for opening TIF in the OS, open Bridge again, and so on) you want to have in the list for a certain filetype.
    When done don't forget to change it back to the default program you want to have it opened in the OS, f.e. CS5.
    No need to make an application the default program (uncheck "always use the selected program to open this kind of file") - just say once "open with" and you will find it in Bridges "open with" list

  • Photoshop cs5 not in "open with" context menu

    I recently got version CS5 [12.1] of photoshop, installed 64 bit version of it. But the "open with " in right click context menu doesn't show photoshop among the listed programs. i tried reinstalling it but the problem is still there. Can anyone please help? I did 'Choose default pr ogram' and navigated to the Photoshop .exe for the 64bit version. (Default path is C:Program Files, Adobe.....) but photoshop doesn't come. nothing happens, the list of programs remains the same.

    Do you see it if you click Choose default program..., then expand the Other Programs section? 
    If not, can you Browse to the Photoshop.exe file on your hard disk and add it?
    -Noel

  • Adobe illustrator is opening with bare minimum

    I've had CS6 installed on my laptop for at least a month now. Just recently, illustrator has been opening with only the bare minimum features: the document that I've opened; the application bar without any tools; and the dropdown menus with limited functions. For instance, I can't even print.

    Hi Mike,
    I'm on a mac, OS X.
      I'm also getting a missing plug-in error, saying that I don't have "Stroke Offset Live Effect (Adobe Illustrator.app). This is probably important, but I don't understant how something that seems so insignificant can have such a large effect on the program. Unless, this missing plug-in is a symptom of a bigger issue.
      I recently uninstalled creative cloud after trying it out. Is it possible that CS6 and creative cloud shared a common pool of applications/plug-ins? I'm pretty sure I was able to properly open up files with CS6 illustrator after uninstalling creative cloud a couple weeks ago though. The problem's been more recent.

  • Problem with Border Container width and height in %

    I want to use bordercontainer in Vgroup and specify its width and height in % form.
    But when we try to set width less than 18% or height less than 10% it takes the default values.
    Why is it so???
    Thanks in advance.
    Ronak Shah

    Probably a minWidth and minHeight set somewhere

  • CS5 32-bit opens with no menu, empty actions window

    When I open CS5 32-bit the main window has nothing in it but a white background. There are no menu items or toolbox. The Actions window open completely blank (transparent except for the frame). The application is unresponsive to any mouse commands (trying to grab and move the window doesn't do anything).
    Task Manager shows that it's consuming around 12% CPU time and around 73 MB memory.
    Last week I was editing some photos when I got an error that an action could not be performed because of a program error. I haven't been able to use the 32-bit version ever since, but the 64-bit version is fine.
    I've removed CS5 and reinstalled it. I've also rebooted several times.
    I need the 32-bit version so I can use DFine2.
    Anyone seen this?

    I use the Nik suite, and I removed all of the Nik apps when I removed CS5.
    I'll try the Ctrl-Shift-Alt on startup after I finish with this batch of photos I'm working on.
    If that doesn't work my next plan is to remove CS5, all the Nik software, then clean my registry and reinstall it all.
    Any reason I should remove CS4 also?
    Ed

  • Photoshop CS5 will NOT open with Windows 8

    I have photoshop loaded on an external hard drive. I was using Windows Vista, but that computer crashed. I purchased a new computer already loaded with Windows 8. Photoshop will not open. I do know there is nothing wrong with the version of Photoshop because if I take the external hard drive to a different computer, it'll open and work fine.
    I have changed the compatibility to everything in the list, and nothing works to open Photoshop. I do not have the disk, so I can't uninstall/reinstall, but it's on an external hard drive to begin with.
    Any ideas?

    When you install on an external drive it writes files to the C drive on the computer you installed from.  PS will not work if you plug external into another computer as it does not have the licencing files on the other computer.   So in effect the external is only good for one computer.

  • Opening print dialog box with "Selection" printing enabled

    Hi all,
    I have a JTable in which I wan to print only selected rows. When I open the Print dialog box using printDialog() method of PrinterJob, the dialog opens with "Selection" option disabled.
    How can I enable this option ?
    How can I print my selection using the standard Print Dialog ?

    This I know.
    Let me refrase my question:
    I have a table with selected cells (Rows Cols
    whatever ...) I wish to open the print dialog box
    with Selection radio button enabled, such that when I
    will check it and click print, the selected table
    cell get printed.This I had understood.
    Let me refrase my reply:
    If you simply print a new table containing the selected data
    then you don't need to have the Selection radio button enabled
    in the print dialog box.

  • CS5 won't open using CONT+H in PSE8

    For some reason CS5 won't open with the Cont+H hot key in PSE8 but will load if using the menu drop down...any ideas how to fix this?

    It's normally ctrl+E to edit in an external program; at least from Lightroom to CS5
    First you must set up the external editor in preferences.

  • Obtain width and height in device central?

    I'm using device Central with Flash CS5.
    How do I obtain the width and height of the device being simulated?
    I need to write some special code to handle screen size in device central - as my application is already able to obtain the screen dimensions when run on a real device.

    I need to know if this is possible, too!
    Hopefully this is working somehow.
    Thanks

  • Mac Open With will not change default after CS5 Load

    I needed to keep CS4 as my "working" copy of InDesign since all others in our office use it.  When I loaded CS5, it defaults to opening all of my files on my Mac.  I want to open the files in CS4 when I double click them.  I know I need to change this in the Info pane, but it keeps reverting to CS5 as the default (yes, I unlocked it also).  Is CS5 doing something to lock the file type?  It's just a pain to right click and open with on every file I open.
    Any help appreciated... FYI, very experienced user (not novice) but stumped on this one.  Actually tried downloaded software also, no go.
    Not sure I like this.

    You could probably get by with RC Default apps too if you just want to make one version of indesign be the default. Soxy looks like it can do a lot more.
    http://www.rubicode.com/Software/RCDefaultApp/
    It's pretty darn good and also great for keeping preview's fingers off your files. Never used Soxy, but there is a similar product in JoJo by the guy who makes up for QuarkXPress' pathetic inability to export a competent pdf of multiple eps files without hitting "save as eps…" 400 hundred times in a catalog. If you have just a handful of people JoJo may be a better solution, or at least one to consider. It is only available as a 4 seat minimum order for 29 euros.
    http://www.jolauterbach.com/products/jojo.htm

  • "Open with" dialog repeat itself 4 times

    I've got a very strange problem with the finder - when I use the "Open with" dialog to choose another application to open a file (the filetype does no matter) the dialog repeats itself four times (you can see it here: http://de.tinypic.com/r/292xutv/4).
    This just happened if I use the keyboard to switch to "Open with" (right click with the mouse on the file, arrow down to the "Open with" dialog, arrow right), if I use the mouse all the time (right click, move the mouse to the dialog, ...) there was no problem and the applications only where listed once.
    I've tried - and this don't solve the problem:
    * Log in with another user account
    * Delete ~/Library/Preferences/com.apple.finder.plist (and reboot)
    * Run +/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Launch Services.framework/Versions/A/Support/lsregister -kill -domain local -domain system -domain user+
    I hope someone can help me and solve the problem.
    Thanks!

    You only tried deleting LaunchServices from your user, try it systemwide. They are only cache files and can do no harm...
    Launch /Utilities/Terminal and copy & paste this at the command line to rebuild LaunchServices:
    Code:
    <pre class="alt2" style="margin:0px; padding:3px; border:1px inset; width:640px; height:34px; overflow:auto">/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user</pre>
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. Let us know
    -mj

Maybe you are looking for

  • Filter by form shows only "Is Null" and "Is Not Null" value in split database

    Hello, I have a SPLIT database into FE (forms, queries...) and BE (tables with data) ready for distribution. PROBLEM When "Filter by Form" is chosen only 2 values are available in combobox filter ("Is Null", "Is Not Null"). All other functionalitie

  • Animated gif

    I put an animated gif in iWeb and it runs fine in the site in Windows IE 7 and Firefox 3.5, and on my Mac in Firefox, But you can just see the initial frame in Safari. Actually I put two on there, the little flag works (has a transparent layer over i

  • Problem with dynamic table

    As users write a lot in text fields of, the table jumps to another page (it doesn't look nice) and overflows. Users can't see the rest of the table. The problem seems to be the subform below. Do you have any ideas to avoid this without changing much

  • Bex formula operators

    HI all, Iam searching in SDN for examples or pdf for formula operators like Basic functions,Percentage functions,Data functions,Mathematical functions,Trignometric functions and Boolean functions.But I couldn't. Please send me if any body have a pdf

  • Canon MP 620 printer

    Using a CANON MP620 PRINTER, tries to print, sounds like it is, but blank paper comes out. Using a  Mac system  OS X 10.6.8.  Ink cartridges are all full. ????