minor fix: avoid repaint flicker by directly setting scroll coordinate
This commit is contained in:
parent
ad2c952810
commit
18b2392e48
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: TimeLine.java,v 1.1 2009/05/04 15:38:35 fros4943 Exp $
|
||||
* $Id: TimeLine.java,v 1.2 2009/05/04 16:03:35 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.plugins;
|
||||
|
@ -92,6 +92,7 @@ public class TimeLine extends VisPlugin {
|
|||
if (!viewportTracking) {
|
||||
return;
|
||||
}
|
||||
viewportInfinite.x = timeline.getWidth();
|
||||
timelineScrollPane.getViewport().setViewPosition(viewportInfinite);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue