LR5.3 resizing problem

I have suddenly experienced difficulty when exporting a photograph. As I often crop images I typically determine what size I want for either the long or short side and let LR choose the opposite side. Specifying the long side dimension creates no problem and the photo exports normally however when I set the short side only, the image will export but no resizing takes place. Has anyone else experienced this? or know how to correct it?  thx

Acknowledged bug.
http://feedback.photoshop.com/photoshop_family/topics/publish_service_harddisk_ignores_ima ge_sizing_resize_to_fit_short_edge_setting_when_source_image_is_a_dng_on_lightroom

Similar Messages

  • [SOLVED] GNOME 3.8 annoying window resize problem

    Hello all fellow early-adopters :-)
    A very annoying quirk I've noticed, moving from GNOME 3.6 to 3.8, is that it no longer remembers, nor retains, the size/positions I set for many of my application windows. For example, my mail client (Evolution) is sized to fill most of my screen (centrally), with Empathy and Skype as long narrow windows on both sides - giving me a nice, broad "communications" overview on that particular desktop (with dev tools etc open on others).
    On 3.6, this layout was retained during my session, as well as next time I started these apps up.
    In GNOME 3.8, not only does it insist that these windows are always started as small little bunched-up windows that I need to resize, but every time a window displays a notification/warning (message in internal yellow bar inside the window - such as loss of internet connection, mail retrieval failure etc) it resizes the windows spontaneously to a stupid, small size that overlays the other windows. This is driving me crazy!
    Where can I learn a bit more about how window sizing / positioning works in GNOME 3.8, or is it finally time to switch to awesome wm? I want to love GNOME 3.8, I really do. It's so slick, but so... unpolished.
    I want to dig in an assist with problems like these, but I need some pointers to some background material first to understand the problem. Is it the window manager? Is it the app?
    ** UPDATE: Doing a full system upgrade, as of May 18, 2013, has resolved this annoying problem. My windows now stay where they belong, and start with the same size they were closed with. GNOME is now pleasant to use again :-)
    Last edited by dawid.loubser (2013-05-21 13:37:25)

    dawid.loubser wrote:Thanks for the suggestion drtebi - I'll give it a try.
    I really like GNOME 3.x though (and would like to understand the windowing behaviour), but if the annoying quirks are insurmountable, I will happily switch.
    Man I love GNOME 3.x. I admire the courage they had to change, basically, everything, and I find myself more productive with my GNOME 3 Arch box than with my good ol' Slackware KDE 4 box. I just hate those bugs - for example I filed a task in their bugtracker for this window resize problem I have with gedit. If it's a love/hate relationship, I think it's marriage ^_^
    With the 3.8 upgrade, deadbeef was having a similar problem with window size/position. I just recompiled it against the latest GTK+3 package upgrade (that came after the 'big upgrade' here on Arch) and it was fixed. But not with gedit
    bwat47 wrote:
    Man I really hope this gets fixed soon, because aside from this one incredibly annoying issue I am loving gnome 3.8.
    I get the feeling gnome badly needs more beta testers, sizable regressions like this in "stable" releases happen way too often sad.
    I get the exact same feeling. Well bugs exist everywhere, there's no denying. But I think it would be wiser to 'alternate' the nature of each major stable release - one focusing on new features and one focusing on fixing bugs. For example if the only new features in GNOME 3.10 were the AppsFolder full implementation and the introduction of gnome-calendar, and the rest of the development cicle being devoted to fix bugs, I'd be more than happy.
    Like Fedora and Ubuntu, the fixed 6-month release cycle colaborates with the bugs. They don't do like Debian or Slackware which are released 'when they are ready'.
    EDIT: fout (yet) another bug. At least with facebook chat (haven't tested with other telepathy plugins) the buddy tray icon appear duplicate. Anybody with the same issue?
    Last edited by lmello (2013-05-02 14:06:06)

  • Preview Application Resizing Problem

    Preview Application Resizing Problem
    Microsoft platforms have two significant advantages. The first is the concept of an operating system that can function with hardware that ranges from cellular phones to desktop computers. The second is that Microsoft has excellent software development tools
    for creating and testing computer programs.
    Software compatibility across hardware platforms requires not only meeting CPU and memory requirements. Application programs must be able to automatically adjust Window and control sizes to meet the needs of available window sizes, video display unit sizes
    and screen resolutions, switching between vertical and horizontal viewing, vertical and horizontal scrolling, changes in font sizes , and variations in the available screen space due to usage of vertical and horizontal toolbars.
     Software developers must be careful that resizing doesn’t squeeze controls too close together or make them so small that they cannot be finger or stylus selected when used with touch screens.
    Some of the required automatic resizing options are provided by the Microsoft software compilers and the Windows operating system.  Softgroup Component’s “.NET  Forms Resize” is an example of one of the third party applications that provide advanced
    resizing functionality.
    Many of the resizing functions are programmer options and, if not properly enabled, an application may not have the required resizing functionality. At the current state of the art, application programs are highly variable in their capability to do the “intelligent
    resizing” that is required to handle different display environments.
    A case in point is the Microsoft Preview Application for Windows 10. When entering lengthy comments, the send button becomes positioned off the end of the program window. It is possible to scroll to the button, but the display automatically resets when scroll
    is released. The result is that the text cannot be sent. You can try a "blind" TAB to the SEND button. This appeared to work after several tries, but the comment was apparently not received,
    RERThird

    Hi,
    What do you see when you open the same PDF file in Acrobat Reader? Are the words still squeezed than?
    Dimaxum

  • LR3 - LR5 upgrade problems

    I've bought LR5 as an upgrade disk from Amazon. Previously I had LR3 installed on my MAC OSX 10.9.4. Installation from disc was reported ok. After inserting the serial number, the original LR3 serial number is found, but if I hit continue LR5 disappears without any further message. Next time I start LR5, it starts again with asking for the serial number ...

    Thanks,
    download of latest LR 5.5 worked!
    Am 10.07.2014 um 20:34 schrieb kglad <[email protected]>:
    LR3 -> LR5 upgrade problems
    created by kglad in Downloading, Installing, Setting Up - View the full discussion
    download the latest (lr 5.5) version (as of today), Adobe - Photoshop : For Macintosh : Adobe Photoshop 5.5 AltiVecCore and Multiprocessor Plug-in update for MacOS
    and install.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6539931#6539931
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Illustrator Resizing Problems

    I am having reduction resizing problems in Illustrator CS6.  E.G. Straws & lemon wedge rinds become significantly proportionately wider when reduced.   Also, numerical text does not skew with everything else.  I have a CC membership w/PS & Ai installed.  There are no other Adobe items on my 8 month old imac, Lion 10.7.4 except Flash player & the Adobe Applications Manager.  Additionally, I have no 3rd party plug-ins & deleting the prefs file does not fix the problem.  Any help on this matter would be greatly appreciated. 

    sgem,
    And untick Align to Pixel Grid if ticked (you can do it in the Transform panel, or search for it in the Helpfile).
    Hi Steve. Still summer?

  • DV resize problem with QuickTime's iPod 320 x 240 export

    Just a heads up for those with new 5th generation iPods who plan on converting their DV movies for display on the iPod. It seems that the iPod 320 x 240 export does not resize DV correctly. Here is a link concerning this problem:
    Waymen, "Possible resize problem with iPod 320 x 240 Export?" #1, 03:02am Oct 13, 2005 CDT

    This article show a workaround to have DV export correctly in QuickTime Pro
    http://docs.info.apple.com/article.html?artnum=302955

  • PAR Iview resizing problem....

    Hello Gurus,
    I have the following problem. I've develop a PAR Iview and i want to resize it on runtime. I've write on my PAR app. a javascript code, but the system shows me a javascript's error when i launch it on my portal, after open the error it says "EPCM Undefined" on this line:
    EPCM.subscribeEvent('urn:com.sapportals.portal:browser', 'load', initFooter);
    In my profile i've set EPCFLevel = 2, but my question is: do i have to reference or include a external jar or lib to my PAR??? witch one???. For General culture...a general info about my iview is: The type of my PAR (Iview) is: AbstractPortalComponent and it has a different namespace (com.<company>.portal.addon.footer) than the namespace i want to subscribe the event.... Please Help!!!!!, i dont know why this error happens...and how can i solve it...what am i missing here within my source code????....
    Regards,
    Mariana

    Hi Rajat,
    Thanx for answer me... now i have a question...why with the standard PAR Iviews that doesnt happens???... because that doesnt happens with all the iviews...happens only with mine's. I know that header Iviews (masthead) use the EPCM object, and it is working just fine, that is why I'm asking if there is an external library, jar, etc., that i have to include in my PAR in order to make it work. is This the only solution in my case???
    I will wait for your answer,
    Best regards,
    Mariana

  • JViewport Resize problem -- Urgent!

    I am trying to make a program that allows the user to dynamically resize a scrollable JPanel. I have added resize buttons that work well. The JScrollPane works well, but when the JViewport's View is set to the bottom right corner of the JPanel, and the user attempts to resize the JPanel, the JViewport repaints its view to the top left corner, hence undoing any resizing. Resizing should not change the View, even if the component is no longer visible in the view.
    Here is a code example (please pardon the length and lack of comments):
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    public class JViewportBug extends JPanel implements Scrollable, ComponentListener
         public JViewportBug()
              this.setLayout( null );
         public Dimension getPreferredScrollableViewportSize()
              return getPreferredSize();
         public boolean getScrollableTracksViewportHeight()
              return false;
         public boolean getScrollableTracksViewportWidth()
              return false;
         public int getScrollableBlockIncrement( Rectangle visibleRect, int orientation, int direction )
              if( orientation == SwingConstants.VERTICAL )
                   return (int)( visibleRect.getHeight() * 9 / 10 );
              return (int)( visibleRect.getWidth() * 9 / 10 );
         public int getScrollableUnitIncrement( Rectangle visibleRect, int orientation, int direction )
              return 5;
         public void componentHidden(ComponentEvent e)
         public void componentMoved(ComponentEvent e)
         public void componentResized(ComponentEvent e)
              Dimension size = ( (Component)e.getSource() ).getSize();
              this.setBounds( 0, 0, 20 + size.width, 20 + size.height );
              this.setPreferredSize( new Dimension( 20 + size.width, 20 + size.height ) );
         public void componentShown(ComponentEvent e)
         public static void main( String[] args )
              JViewportBug bug = new JViewportBug();
              JFrame frame = new JFrame( "JViewport Bug" );
              frame.setExtendedState( JFrame.MAXIMIZED_BOTH );
              JScrollPane jsp = new JScrollPane( bug );
              JPanel viewable = new JPanel();
              bug.add( viewable );
              viewable.addComponentListener( bug );
              viewable.setBounds( 10, 10, 200, 200 );
              JDesktopPane jdp = new JDesktopPane();
              jdp.setLayout( null );
              for( int i = 0; i < 8; i++ )
                   ResizeButton rb = new ResizeButton( viewable, i, true );
                   bug.add( rb );
                   viewable.addComponentListener( rb );
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              viewable.setBackground( Color.white );
              frame.getContentPane().add( jdp, BorderLayout.CENTER );
              JInternalFrame jif = new JInternalFrame( "", true, true, true, true );
              jif.getContentPane().add( jsp );
              jdp.add( jif );
              jif.setSize( 500, 500 );
              bug.setPreferredSize( new Dimension( viewable.getWidth() + 20, viewable.getHeight() + 20 ) );
              jif.setVisible( true );
              frame.setVisible( true );
    class ResizeButton extends JComponent implements MouseMotionListener, MouseListener, ComponentListener
         public static final int NW_RESIZE_BUTTON = 0;
         public static final int N_RESIZE_BUTTON = 1;
         public static final int NE_RESIZE_BUTTON = 2;
         public static final int E_RESIZE_BUTTON = 3;
         public static final int SE_RESIZE_BUTTON = 4;
         public static final int S_RESIZE_BUTTON = 5;
         public static final int SW_RESIZE_BUTTON = 6;
         public static final int W_RESIZE_BUTTON = 7;
         JComponent resize;
         int buttonType;
         boolean enabled;
         public ResizeButton( JComponent aComponent, int type, boolean isEnabled )
              resize = aComponent;
              buttonType = type;
              setBounds();
              enabled = isEnabled;
              this.addMouseMotionListener( this );
              this.addMouseListener( this );
         public int getType()
              return buttonType;
         public void mouseEntered( MouseEvent e )
              if( enabled )
                   switch( ( (ResizeButton)e.getSource() ).getType() )
                        case 0:
                             getParent().setCursor( new Cursor( Cursor.NW_RESIZE_CURSOR ) );
                             break;
                        case 1:
                             getParent().setCursor( new Cursor( Cursor.N_RESIZE_CURSOR ) );
                             break;
                        case 2:
                             getParent().setCursor( new Cursor( Cursor.NE_RESIZE_CURSOR ) );
                             break;
                        case 3:
                             getParent().setCursor( new Cursor( Cursor.E_RESIZE_CURSOR ) );
                             break;
                        case 4:
                             getParent().setCursor( new Cursor( Cursor.SE_RESIZE_CURSOR ) );
                             break;
                        case 5:
                             getParent().setCursor( new Cursor( Cursor.S_RESIZE_CURSOR ) );
                             break;
                        case 6:
                             getParent().setCursor( new Cursor( Cursor.SW_RESIZE_CURSOR ) );
                             break;
                        case 7:
                             getParent().setCursor( new Cursor( Cursor.W_RESIZE_CURSOR ) );
         public void mouseExited( MouseEvent e )
              if( enabled )
                   getParent().setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );
         public void mouseClicked( MouseEvent e )
         public void mousePressed( MouseEvent e )
         public void mouseReleased( MouseEvent e )
         public void mouseMoved( MouseEvent e )
         public void mouseDragged( MouseEvent e )
              if( enabled && e.getSource() instanceof ResizeButton )
                   int clickedX = e.getX();
                   int clickedY = e.getY();
                   int width, height;
                   switch( ( (ResizeButton)e.getSource() ).getType() )
                        case NW_RESIZE_BUTTON:
                             width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
                             height = ( resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1 );
                             resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
                                                           resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
                                                           width,
                                                           height );
                             break;
                        case N_RESIZE_BUTTON:
                             height = resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1;
                             resize.setBounds( resize.getX(),
                                                           resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
                                                           resize.getWidth(),
                                                           height );
                             break;
                        case NE_RESIZE_BUTTON:
                             width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
                             height = resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1;
                             resize.setBounds( resize.getX(),
                                                           resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
                                                           width,
                                                           height );
                             break;
                        case E_RESIZE_BUTTON:
                             width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
                             resize.setBounds( resize.getX(),
                                                           resize.getY(),
                                                           width,
                                                           resize.getHeight() );
                             break;
                        case SE_RESIZE_BUTTON:
                             width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
                             height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
                             resize.setBounds( resize.getX(),
                                                           resize.getY(),
                                                           width,
                                                           height );
                             break;
                        case S_RESIZE_BUTTON:
                             height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
                             resize.setBounds( resize.getX(),
                                                           resize.getY(),
                                                           resize.getWidth(),
                                                           height );
                             break;
                        case SW_RESIZE_BUTTON:
                             width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
                             height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
                             resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
                                                           resize.getY(),
                                                           width,
                                                           height );
                             break;
                        case W_RESIZE_BUTTON:
                             width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
                             resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
                                                           resize.getY(),
                                                           width,
                                                           resize.getHeight() );
         public void setBounds()
              switch( buttonType )
                   case NW_RESIZE_BUTTON:
                        this.setBounds( resize.getX() - 5,
                                                 resize.getY() - 5,
                                                 5,
                                                 5 );
                        break;
                   case N_RESIZE_BUTTON:
                        this.setBounds( (int)( ( resize.getWidth() + 2 * resize.getX() ) / 2 ) - 2,
                                                 resize.getY() - 5,
                                                 5,
                                                 5 );
                        break;
                   case NE_RESIZE_BUTTON:
                        this.setBounds( resize.getWidth() + resize.getX(),
                                                 resize.getY() - 5,
                                                 5,
                                                 5 );
                        break;
                   case E_RESIZE_BUTTON:
                        this.setBounds( resize.getWidth() + resize.getX(),
                                                 (int)( ( resize.getHeight() + 2 * resize.getY() ) / 2 ) - 2,
                                                 5,
                                                 5 );
                        break;
                   case SE_RESIZE_BUTTON:
                        this.setBounds( resize.getWidth() + resize.getX(),
                                                 resize.getHeight() + resize.getY(),
                                                 5,
                                                 5 );
                        break;
                   case S_RESIZE_BUTTON:
                        this.setBounds( (int)( ( resize.getWidth() + 2 * resize.getX() ) / 2 ) - 2,
                                                 resize.getHeight() + resize.getY(),
                                                 5,
                                                 5 );
                        break;
                   case SW_RESIZE_BUTTON:
                        this.setBounds( resize.getX() - 5,
                                                 resize.getHeight() + resize.getY(),
                                                 5,
                                                 5 );
                        break;
                   case W_RESIZE_BUTTON:
                        this.setBounds( resize.getX() - 5,
                                                 (int)( ( resize.getHeight() + 2 * resize.getY() ) / 2 ) - 2,
                                                 5,
                                                 5 );
         public void componentHidden(ComponentEvent e)
         public void componentMoved(ComponentEvent e)
         public void componentResized(ComponentEvent e)
              this.setBounds();
         public void componentShown(ComponentEvent e)
         public void setEnabled( boolean enable )
              enabled = enable;
         public boolean isEnabled()
              return enabled;
         public void paint( Graphics g )
              ( (Graphics2D)g ).fillRect( 0, 0, 5, 5 );
    }

    Hi bbritta,
    Thanks for the time. I guess the setLocation MIGHT be off, tho ideally, it should place the tv somewhere near the right bottom corner of the screen.
    The basic requirement I have is in the code written. This is what I want. When I start my application, I want the small tv screen only to appear, with the two colored panels (that shall obviously contain some other code). When my mouse hovers on this small screen, the buttons should appear in a panel just below the small screen. So I have used a JLayered pane that displays two separate gifs, one for the small screen, and one for the buttons panel. On the small screen gif, I have added two panels to layer 1, and on the button panel gif, I have added 3 buttons.
    What is happening is that if I set the frame size to the size of the small screen at startup (before show()), then on mouse hover, the frame size increases, but the layered pane size stays the same, and hence i cannot see the button panel. But if I start out with the button panel showing (frame size initially set to the larger value), then on mouse exit, the button panel disappears, and reappears properly on mouse enter. But I don't want to set the original size to the larger value, since only the small screen must be seen first.
    Did I make my self clear? The whole problem is that on mouse hover, u cannot see the button panel, till u change the setSize() code in initializeFrame() to use c_o_FULL_TV_SIZE instead of c_o_TV_SIZE. That u cannot see the buttons IS my problem!
    Thanks,
    Shefali.

  • Resizing problem

    Hello!
    I have a JFrame that contains some components I would rather didn't shrink below a minimum size, which I have specified using setMinimumSize. Everything works fine if I have te following line in my code:         JFrame.setDefaultLookAndFeelDecorated(true);If I remove it, though, in order to use the native look and feel, I have found the minimum size gets ignored completely. Currently, I am using a ComponentListener that watches for resizes and corrects them, however the results aren't very pretty.
    So my question is this: is there any better workaround to this problem, such as watching for (and ignoring) mouse clicks on the border of the Jframe?
    Many thanks in advance!

    It's very stupid if you answer a question and find
    then that it has been answered hours ago.I meant: It's stupid (annoying) for me if
    I answer a question and find then that it has
    been answered hours ago.
    I have not referred the "stupid" to you.
    Don't want anyone here to feel offended.Even if you are stupid.

  • Flash plugin window resize problem

    When i try to resize non-maximized window with this page, firefox not let me do this. I tried on other browsers works fine, but firefox just cancel resize operation and change it's size only on 1-3 pixels.
    [http://armsenergy.com/as3/forFirefox/index.php back up'd example]

    Try to "disable the hardware acceleration" in the Flash Player.
    *http://helpx.adobe.com/flash-player/kb/video-playback-issues.html
    See also:
    *https://support.mozilla.org/kb/keep-flash-up-to-date-and-troubleshoot-problems
    Flash "Display settings" window:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html
    You can check for problems caused by a recent Flash 11.3 update and possibly downgrade to Flash 11.2 or 10.3.
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
    *https://support.mozilla.org/kb/flash-113-crashes

  • Flash root Movie Resize Problem

    Greetings ladies and gentlemen,
    I have been going round and round in circles, trying to solve
    this annoying little problem, and have just ended up biting myself
    in the small of the back. I need help from someone who really knows
    their flash.
    My problem is this - I have a parent flash movie of size
    900x800. I have a button inside this parent that then loads an
    external swf (size 300x200) into an empty mc in the parent. My
    problem is that when the external swf loads, it resizes the parent
    movie (or repositions it depending on whether I am using IE or
    Firefox).
    I can't seem to work out why or how it's happening, and it
    happens whether I use the standard Flash embedding or the swfobject
    method for my HTML page that the movie is embedded in.
    The actionscript code in the parent is very basic:
    but1.onRelease = function() {
    _root.createEmptyMovieClip("mp3_player",
    getNextHighestDepth());
    mp3_player._x = 240;
    mp3_player._y = 390;
    mp3_player.loadMovie("mp3player.swf");
    I can't imagine why the root movie jumps down in size when
    the button is pressed and the external swf loaded. Please, could
    anyone shed some light?
    My html file has the following embedding:

    Yep. I have the same problem and I have searched every forum
    on the web and have spent hours messing with AS. If anyone has a
    clue please throw us a bone.
    Thanks,
    Dr-Clegg

  • Component resizing problem in Vbox

    Hi.. I am facing a peculiar problem.. I have a vbox which contains 5 components, each of which has a line graph and a legend.. But all of them need not be visible at a time.. It depends on the number of parameters returned from a webservice call... so at a time 1-5 of such components maybe visible... i do this by setting includeInLayout and visible to false..
    Each of the components have height and width set to 100%. So I expect all the components which have includeinlayout and visible set to true to be equal in size... But if initially only one of the component is visible and then i want to show 2 components by setting these properties, the component which was visible initially is not resizing.. It is staying the same size as before making the second component visible... second component is getting correct size (half of the size of the VBox)..... Am i doing something wrong here? Can some component not reduce in size if another child added/included in layout of its parent?
    Thanks in advance for your help!

    Hi Philip,
    This is my vbox declaration. Trendline has a linechart and a legend
    <mx:VBox id="chartsContainer" width="100%" height="100%" verticalScrollPolicy="auto">
       <chart:TrendLine id="defaultTrendLineChart" width="100%" height="100%" includeInLayout="true" visible="true"/>
       <chart:TrendLine id="trendChart1" width="100%" height="100%" includeInLayout="false" visible="false"/>
       <chart:TrendLine id="trendChart2" width="100%" height="100%" includeInLayout="false" visible="false"/>
    </mx:VBox>
    And here is the code where i selectively include various charts in the display
    var count:int = 0;
    for (var parameterType:String in parameterTable)
       var trendLineChart:TrendLine = trendChartArray[count++];                                                       
       trendLineChart.includeInLayout = true;
       trendLineChart.visible = true;
       trendLineChart.Initialize();
       trendLineChart.SetView(bIsChartView);                       
       trendLineChart.LoadChart(dataProvider, parameterType, parameterTable[parameterType]);
    I have stored all the children of the vbox in an array for easy fetching
    var trendChartArray:Array = [defaultTrendLineChart, trendChart1, trendChart2];
    parameterTable is a Dictionary in which number of parametertypes can vary from 1 to 3 depending on the result of a webservice call. The problem is that if initially i am showing only one chart and then i have to show 2 charts, the first chart's size is not getting reduced. But the second chart added is getting correct size.
    Thanks a lot for your response.

  • LR5 encountered problems reading this photo.

    Hi,
    I am working on a Macbook Pro, 8gb with 1 tb
    Recently did external back up.
    Mac was having issues so we ( IT guys ) did a clean install and only brought back in basics.
    ( I was on LR3 and PSE9 ) but we didn't bring it over as mirror copy because there were so many other items on Mac I didn't need.
    I bought Mac with LR3 and PSE9 so I could not do upgrade,
    I instead started the trial today, so we could merge from the external the images to Pictures. ( so it was on external in pictures and now on os-x pictures )
    So LR5 brought all my catalogs in, I even got smug mug to find its catalogs. , but now I am getting ! on every image.
    I have selective chosen the image from external and moved it to OS X  pictures folder.
    Why am I getting the ! on the images. When I right click the ! I get error, LR has encountered problems reading this file.
    when I click find in file folder I get a tiff picture with a loop on top and if I click that I get this... Item “untitled-8547-Edit.tif” is used by OS X and can’t be opened.
    one thing I did just notice is the date on the tiff says, Jan 24th 1984 3am 0 bytes tiff image.   ( what the heck? )
    now the image right beside it to the left is the image ( I can actually see ) and it looks good.
    why is finder bringing up a bogus tiff ?
    Thank you for your help. Need to be up and running. Need these ! gone , please help.
    Diana

    Suggestion to all who encounter problems like this: if you've installed 3rd party memory cards (ram), go back to your original ram, or at least the brand of ram that your computuer came with.
    Long story, short:
    I had the same error message in LR5.  It only happened with several images in a given import.  If I deleted all of the images from the import and reimported the images, a different set of images would have the error message.  The images that originally had the message would no longer have the problem.  I deleted and reimported several times while observing the same behavior. 
    Not only did lightroom give me issues, but Bridge had problems reading the files, and the previews of the problem images would not show up in Finder (Mac speak).  This ruled out, to me at least, that it was a software issue.  I went out and purchased a new card reader and had the same problems.  I tried a different card with different images and got the same problems. 
    After I contacted Adobe, they had me upload two files with the error, and they said the files were corrupted due to faulty hardware.  I took my mac book pro (13in early 2011 w/ 10.7.5) to the apple store and they ran a diagnostic test amoung other test and we came up with nothing.  Everything seemed to be good on the hardware side.  After some research the Rep. asked me about my ram (memory cards).  I had in the past installed two 3rd party cards to boost my ram from 4GB to 8GB. The rep. suggested that I go home and test the issue with the original ram my computer came with before we go any farther.  So far, I haven't had any issues. 
    I hope this helps,
    Josef

  • Weird JPanel Resizing Problem

    This program works as I want it to with one exception: sometimes when resizing the frame, the contained JPanels do not fully cover the frame's BorderLayout center region. If you run the program you'll discover that a light gray area often appears on the right and bottom edges of the frame when it's resized. Any ideas? Thanks. I'm using version 1.3.1._01 on Windows 98.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Grid extends JPanel implements ComponentListener
    private int rows, columns;
    private Block[][] block;
    public Grid()
    rows = 20;
    columns = 10;
    block = new Block[rows][columns];
    setLayout(new GridLayout(rows,columns,0,0));
    for (int i = 0; i < rows; i++)
    for (int j = 0; j < columns; j++)
    block[j] = new Block();
    if ((i % 4) >= 1)
    block[j].turnOn();
    else
    block[j].turnOff();
    add(block[j]);
    }//end inner for loop
    }//end outer for loop
    setBorder(BorderFactory.createLineBorder(Color.black,4));
    addComponentListener(this);
    }//end default constructor
    public Dimension getPreferredSize()
    int horizontalInsets = getInsets().left + getInsets().right;
    int verticalInsets = getInsets().top + getInsets().bottom;
    return new Dimension((block[0][0].getBlockWidth() * columns) + horizontalInsets,
    (block[0][0].getBlockHeight() * rows) + verticalInsets);
    }//end getPreferredSize
    public void componentHidden(ComponentEvent ce)
    //Invoked when the component has been made invisible.
    public void componentMoved(ComponentEvent ce)
    //Invoked when the component's position changes.
    public void componentResized(ComponentEvent ce)
    //Invoked when the component's size changes.
    int horizontalInsets = getInsets().left + getInsets().right;
    int verticalInsets = getInsets().top + getInsets().bottom;
    setPreferredSize(new Dimension(getWidth() + horizontalInsets,getHeight() + verticalInsets));
    setMinimumSize(new Dimension(getWidth() + horizontalInsets,getHeight() + verticalInsets));
    public void componentShown(ComponentEvent ce)
    //Invoked when the component has been made visible.
    public static void main(String[] args)
    JFrame frame = new JFrame();
    frame.getContentPane().add(new Grid(),BorderLayout.CENTER);
    frame.pack();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.show();
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Block extends JPanel implements ComponentListener
    private int blockWidth, blockHeight;
    private Color blockBackgroundColor, blockBorderColor, onColor;
    private String blockOwner;
    private boolean isOn;
    public Block()
    blockWidth = 20;
    blockHeight = 20;
    //setSize(20,20);
    //setPreferredSize(new Dimension(20,20));
    blockBackgroundColor = Color.gray;
    blockBorderColor = Color.black;
    setLayout(new BorderLayout(0,0));
    setBorder(BorderFactory.createLineBorder(blockBorderColor,1));
    setBackground(blockBackgroundColor);
    isOn = false;
    blockOwner = "1";
    onColor = Color.orange;
    addComponentListener(this);
    setVisible(true);
    }//end default constructor
    public Block(int blockWidth, int blockHeight)
    this();
    this.blockWidth = blockWidth;
    this.blockHeight = blockHeight;
    }//end two-arg constructor
    public void setBlockWidth(int blockWidth)
    this.blockWidth = blockWidth;
    public int getBlockWidth()
    return blockWidth;
    public void setBlockHeight(int blockHeight)
    this.blockHeight = blockHeight;
    public int getBlockHeight()
    return blockHeight;
    public void setBlockBorderColor(Color blockBorderColor)
    this.blockBorderColor = blockBorderColor;
    public Color getBlockBorderColor()
    return blockBorderColor;
    public void setBlockBackgroundColor(Color blockBackgroundColor)
    this.blockBackgroundColor = blockBackgroundColor;
    public Color getBlockBackgroundColor()
    return blockBackgroundColor;
    public void setOnColor(Color onColor)
    this.onColor = onColor;
    public Color getOnColor()
    return onColor;
    public void turnOn()
    setBackground(onColor);
    isOn = true;
    public void turnOff()
    setBackground(blockBackgroundColor);
    isOn = false;
    public void setBlockOwner(String blockOwner)
    this.blockOwner = blockOwner;
    public String getBlockOwner()
    return blockOwner;
    public Dimension getPreferredSize()
    int horizontalInsets = getInsets().left + getInsets().right;
    int verticalInsets = getInsets().top + getInsets().bottom;
    return new Dimension(blockWidth + horizontalInsets,
    blockHeight + verticalInsets);
    }//end getPreferredSize
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    if (isOn)
    FontMetrics fm = g.getFontMetrics();
    int blockOwnerWidth = fm.stringWidth(blockOwner);
    int blockOwnerAscent = fm.getAscent();
    int x = (blockWidth / 2) - (blockOwnerWidth / 2);
    int y = (blockHeight / 2) + (blockOwnerAscent / 2);
    g.drawString(blockOwner,x,y);
    }//end paintComponent
    public void componentHidden(ComponentEvent ce)
    //Invoked when the component has been made invisible.
    public void componentMoved(ComponentEvent ce)
    //Invoked when the component's position changes.
    public void componentResized(ComponentEvent ce)
    //Invoked when the component's size changes.
    int horizontalInsets = getInsets().left + getInsets().right;
    int verticalInsets = getInsets().top + getInsets().bottom;
    blockWidth = this.getWidth();
    blockHeight = this.getHeight();
    setPreferredSize(new Dimension(blockWidth + horizontalInsets,blockHeight + verticalInsets));
    setMinimumSize(new Dimension(blockWidth + horizontalInsets,blockHeight + verticalInsets));
    public void componentShown(ComponentEvent ce)
    //Invoked when the component has been made visible.

    Your problem is due to the use of a GridLayout.
    With a GridLayout, all components must have the same dimension. And the extra space has to be divisible by the number of components to be distributed to each component :
    For example : In a component with a GridLayout, you have a line with 10 JPanels. The width of the component is initially 100. In this case, each JPanel will have a width of 10 (10*10=100).
    If you resize the main component to a width of 110, each JPanel will have a size of 11 (11*10=110).
    But in the case where the width is not divisible by the number of JPanels, there will be an extra-space :
    if the width of the component is 109, the width of each JPanel will be 10 and there will be an extra-space of 9 (10*10+9 = 109).
    I hope this helps,
    Denis

  • JScrollPane resizing problem, I think...

    The Task
    I want to build a dialog that holds different option panels.
    Instead of using a JTabbedPane, I want to use a JTree to select among the different panels.
    I put the tree in a nice scroll pane, place the whole thing in the left side of
    the dialog. I think I have the logic down except for one thing...
    The Problem
    Whenever I click a node when the JTree is expanded, it resizes itself. It does this so that words that go off to the right can be seen.
    I don't want this to happen, but I do have to revalidate the main panel for it to change.
    Apparently, just revalidating the main panel revalidates everything.
    The Question
    Is there a setting in the JTree or the JScrollPane that stops this from happening?
    I have tried to change the LayoutManager, but the same thing happens with GridBagLayout.
    I'll put example code in the following post so you can see my issue. I put the most pertinent code to the front, so that you don't have to read too deeply.
    Can anyone advise me?
    Thanks.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.util.*;
    public class ScrollPaneProblem extends JDialog
       implements TreeSelectionListener
       private JButton jbClose;
       private JTree optionsTree;
       private MainPanel jpMain;
       private ActionListener terminator;
       public ScrollPaneProblem()
          // I would prefer that it stay this size.
          setSize( 535, 375 );
          setResizable( false );
          setTitle( "Preferences" );
          setupGui();
          setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
       protected void setupGui()
          Container contentPane = getContentPane();
             The left side of dialog will hold the option tree.
          optionsTree = buildTheTree();
          JScrollPane scrollPane = new JScrollPane( optionsTree );
          contentPane.add( scrollPane, BorderLayout.WEST );
             The center panel will hold another panel
             that changes according to what has been selected
             in the JTree.
          JPanel centerPanel = new JPanel( new BorderLayout() );
          Box bxButtons = buildTheButtonBox();
          centerPanel.add( bxButtons, BorderLayout.SOUTH );
          jpMain = new MainPanel();
          centerPanel.add( jpMain, BorderLayout.CENTER );
          contentPane.add( centerPanel, BorderLayout.CENTER );
       } // end setupGui()
          Changes the text on the main panel, according to what
          has been clicked in the JTree.
       public void valueChanged( TreeSelectionEvent evt )
          TreePath path = evt.getPath();
          Object obj = path.getLastPathComponent();
          if ( obj instanceof DefaultMutableTreeNode )
             DefaultMutableTreeNode node =
             (DefaultMutableTreeNode)obj;
             obj = node.getUserObject();
             // The problem happens when I do the following...
             jpMain.setText( obj.toString() );
             jpMain.revalidate();
             jpMain.repaint();
          } // end if ( a DefaultMutableTreeNode )
       } // end valueChanged( TreeSelectionEvent )
       private JTree buildTheTree()
          // First, build the parent nodes
          Object [] smurfNodes =
             "Smurfette", "Vanity", "Papa Smurf",
             "Greedy Smurf", "Lazy Smurf",
             "O.J., the ostracized orange smurf"
          ParentNode theSmurfs = new ParentNode(
                                  "The Smurfs", smurfNodes );
          Object [] dwarfNodes =
             "Doc", "Happy", "Dopey", "Sneezy",
             "Scratchy", "Sniffy", "Stuffy Head",
             "Fever", "So you can rest medicine"
          ParentNode theDwarfs = new ParentNode(
                                  "The Seven Plus Dwarfs", dwarfNodes );
          // These are all the nodes that go on the tree.
          Object [] theNodes =
             "Scooby Doo",
             "Inspector Gadget",
             "Mighty Mouse",
             "Captain Caveman",
             theSmurfs,
             theDwarfs
          JTree theTree = new JTree( theNodes );
          theTree.addTreeSelectionListener( this );
          return theTree;
       } // end buildTheTree()
       public Box buildTheButtonBox()
          Box box = Box.createHorizontalBox();
          box.add( Box.createHorizontalGlue() );
          // Make it so that we can close this JDialog.
          jbClose = new JButton( "Exit" );
          jbClose.addActionListener( terminator );
          box.add( jbClose );
          box.add( Box.createHorizontalGlue() );
          // help button that does absolutely nothing.
          JButton jbHelp = new JButton( "Help" );
          box.add( jbHelp );
          box.add( Box.createHorizontalGlue() );
          return box;
       } // end buildTheButtonBox()
       // Main entry point.
       public static void main( String [] args )
          JDialog dialog = new ScrollPaneProblem();
          dialog.setVisible( true );
       // So we can shut the dialog off
       static
          terminator =
          new ActionListener()
             public void actionPerformed( ActionEvent evt )
                System.exit( 0 );
    } // end ScrollPaneProblem class
       This MainPanel class goes in the middle of the dialog.
       My other program switches panels instead of using
       the same panel, but that's too much code to put here.
    class MainPanel extends JPanel
       String theText = "Tell me what to draw";
       Font theFont = new Font( "Sans Serif", Font.PLAIN, 12 );
       Dimension theSize;
       // Draws the selected text
       public void paintComponent( Graphics g )
          super.paintComponent( g );
          theSize = getSize( theSize );
          Font oldFont = g.getFont();
          g.setFont( theFont );
          g.drawString( theText, theSize.width / 10, theSize.height / 2 );
          g.setFont( oldFont );
       public void setText( String text )
          theText = text;
    } // end class MainPanel
       This helps with the JTree parent nodes.
    class ParentNode extends Vector
       String theName;
       public ParentNode( String name )
          this( name, null );
       public ParentNode( String name, Object [] values )
          theName = name;
          if ( values != null )
             addAll( Arrays.asList(values) );
       public String toString()
          return theName;
    } // end ParentNode class

Maybe you are looking for