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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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;
|
package se.sics.cooja.plugins;
|
||||||
|
@ -92,6 +92,7 @@ public class TimeLine extends VisPlugin {
|
||||||
if (!viewportTracking) {
|
if (!viewportTracking) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
viewportInfinite.x = timeline.getWidth();
|
||||||
timelineScrollPane.getViewport().setViewPosition(viewportInfinite);
|
timelineScrollPane.getViewport().setViewPosition(viewportInfinite);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue