mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-02 17:33:46 +00:00
panel/RRDChart: fix animation settings for highlight/marker
in extjs 7.0, the marker does not have the 'fx' property anymore, but the now documented 'animation' property does not work as it seems. instead set the animation settings directly on the chart. The only downside is that this is now for *all* animations, not only the fade in of the highlight. (the default duration is 500ms) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a78ec00494
commit
fe3a919417
@ -246,10 +246,6 @@ Ext.define('Proxmox.widget.RRDChart', {
|
||||
marker: {
|
||||
opacity: 0,
|
||||
scaling: 0.01,
|
||||
fx: {
|
||||
duration: 200,
|
||||
easing: 'easeOut',
|
||||
},
|
||||
},
|
||||
highlightCfg: {
|
||||
opacity: 1,
|
||||
@ -266,7 +262,10 @@ Ext.define('Proxmox.widget.RRDChart', {
|
||||
|
||||
// enable animation after the store is loaded
|
||||
me.store.onAfter('load', function() {
|
||||
me.setAnimation(true);
|
||||
me.setAnimation({
|
||||
duration: 200,
|
||||
easing: 'easeIn',
|
||||
});
|
||||
}, this, { single: true });
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user