/[classpath]/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicScrollBarUI.java

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

revision 1.18 by rabbit78, Wed Apr 27 10:16:21 2005 UTC revision 1.19 by rabbit78, Wed Apr 27 12:39:08 2005 UTC
# Line 743  public class BasicScrollBarUI extends Sc Line 743  public class BasicScrollBarUI extends Sc
743          thumbRect.x += (value - min) * trackRect.width / (max - min);          thumbRect.x += (value - min) * trackRect.width / (max - min);
744          thumbRect.y = trackRect.y;          thumbRect.y = trackRect.y;
745    
746          thumbRect.width = extent * trackRect.width / (max - min);          thumbRect.width = Math.max(extent * trackRect.width / (max - min),
747                                       getMinimumThumbSize().width);
748          thumbRect.height = trackRect.height;          thumbRect.height = trackRect.height;
749        }        }
750      else      else
# Line 752  public class BasicScrollBarUI extends Sc Line 753  public class BasicScrollBarUI extends Sc
753          thumbRect.y = trackRect.y + value * trackRect.height / (max - min);          thumbRect.y = trackRect.y + value * trackRect.height / (max - min);
754    
755          thumbRect.width = trackRect.width;          thumbRect.width = trackRect.width;
756          thumbRect.height = extent * trackRect.height / (max - min);          thumbRect.height = Math.max(extent * trackRect.height / (max - min),
757                                        getMinimumThumbSize().height);
758        }        }
759      return thumbRect;      return thumbRect;
760    }    }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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