/[classpath]/classpath/javax/swing/SizeRequirements.java
ViewVC logotype

Diff of /classpath/javax/swing/SizeRequirements.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by rabbit78, Tue Sep 27 14:30:08 2005 UTC revision 1.16 by rabbit78, Tue Sep 27 20:44:10 2005 UTC
# Line 282  public class SizeRequirements implements Line 282  public class SizeRequirements implements
282      // Adjust spans so that we exactly fill the allocated region. If      // Adjust spans so that we exactly fill the allocated region. If
283      if (span > allocated)      if (span > allocated)
284        adjustSmaller(allocated, children, spans, span);        adjustSmaller(allocated, children, spans, span);
285      else      else if (span < allocated)
286        adjustGreater(allocated, children, spans, span);        adjustGreater(allocated, children, spans, span);
287    
288      // Adjust offsets.      // Adjust offsets.
# Line 433  public class SizeRequirements implements Line 433  public class SizeRequirements implements
433          float align = children[i].alignment;          float align = children[i].alignment;
434          // Try to fit the component into the available space.          // Try to fit the component into the available space.
435          int[] spanAndOffset = new int[2];          int[] spanAndOffset = new int[2];
436          if (align < .5F)          if (align < .5F || baseline == 0)
437            adjustFromRight(children[i], baseline, allocated, spanAndOffset);            adjustFromRight(children[i], baseline, allocated, spanAndOffset);
438          else          else
439            adjustFromLeft(children[i], baseline, allocated, spanAndOffset);            adjustFromLeft(children[i], baseline, allocated, spanAndOffset);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26