First time here? Check out the FAQ!
I have this checkbox that control when to allow user to drag on a particular time series.
@Listen("onCheck = #EnableDragOnSeries2")
public void processingDragRequest(Event event) {
if (EnableDragOnSeries2.isChecked()) {
System.out.println("Interpolate box checked.");
chart.getSeries(2).getDragDrop().setDraggableY(true);
}else {
System.out.println("Interpolate box unchecked.");
chart.getSeries(2).getDragDrop().setDraggableY(false);
//chart.invalidate();
}
}
Once the draggableY() method is set to true, it is always enabled even if I unchecked the checkbox. The only way to turn it off is by calling chart.invalidate().
Is this the default behavior of this draggableY() method?
I have created a bug https://tracker.zkoss.org/browse/ZKCHARTS-108 for your case. Besides, the workaround is what you did: chart.invalidate();
Thanks for reporting such a bug. :)
The bug was fixed, please try the version 7.2.1.2-FL-20201106-Eval
Asked: 2020-08-27 00:18:24 +0800
Seen: 9 times
Last updated: Nov 09 '20
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate