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

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

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

revision 1.23 by abalkiss, Thu Jul 28 13:27:59 2005 UTC revision 1.24 by abalkiss, Thu Jul 28 19:42:54 2005 UTC
# Line 517  public class JViewport extends JComponen Line 517  public class JViewport extends JComponen
517      else if (contentRect.y + viewBounds.y + contentRect.height >      else if (contentRect.y + viewBounds.y + contentRect.height >
518               (portBounds.y+portBounds.height))               (portBounds.y+portBounds.height))
519        setViewPosition (new Point(pos.x, contentRect.y -        setViewPosition (new Point(pos.x, contentRect.y -
520                                   (portBounds.height - contentRect.height)));                                   (portBounds.height - contentRect.height) -
521                                     portBounds.y));
522    
523      // X-DIRECTION      // X-DIRECTION
524      pos = getViewPosition();      pos = getViewPosition();
# Line 526  public class JViewport extends JComponen Line 527  public class JViewport extends JComponen
527      else if (contentRect.x + viewBounds.x + contentRect.width >      else if (contentRect.x + viewBounds.x + contentRect.width >
528               (portBounds.x + portBounds.height))               (portBounds.x + portBounds.height))
529        setViewPosition (new Point(contentRect.x -        setViewPosition (new Point(contentRect.x -
530                                   (portBounds.width - contentRect.width), pos.y));                                   (portBounds.width - contentRect.width)
531                                     - portBounds.x, pos.y));
532    }    }
533  }  }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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