Announcement
Collapse
No announcement yet.
X
-
Hello Hirn, thanks for the video, but we can't debug a video, and there are thousands of different things that could be wrong in your application code that could cause this kind of problem.
Please let us know if you have a way for us to reproduce this problem. The ideal thing is always a standalone, runnable test case.
If you don't have time to try to make this reproducible, consider purchasing consulting hours, so we can do an "over the shoulder" debugging session, and find the problem for you (regardless of whether it's a framework issue or application issue).
-
Hello dear Isomorphic
I have solved my problem and I think you will be interested in this solution...
I had the code....
Code:Timeline tasksLine = new Timeline(); ..... ..... tasksLine.setShowResizeBar(true);
Code:tasksLine.getTimelineView().addResizedHandler(new ResizedHandler() { @Override public void onResized(ResizedEvent event) { int w0 = tasksLine.getWidth(); int w1 = tasksLine.getTimelineView().getWidth(); console.log("on resized view: " + w0 + " : " + w1); } }); tasksLine.addResizedHandler(new ResizedHandler() { @Override public void onResized(ResizedEvent event) { int w0 = tasksLine.getWidth(); int w1 = tasksLine.getTimelineView().getWidth(); console.log("on resized : " + w0 + " : " + w1); } });
Code:tasksLine.addResizedHandler(new ResizedHandler() { @Override public void onResized(ResizedEvent event) { int w0 = tasksLine.getWidth(); int w1 = tasksLine.getTimelineView().getWidth(); if(w0 != w1) { tasksLine.getTimelineView().setWidth(w0); } } });
Last edited by Hirn; 6 Apr 2023, 02:31.
Comment
Comment