Hi,
I've hit some problems when dragging a canvas around between nested Layouts in a SectionStack in a scrolling Canvas (the attachments contain a demo with one such nesting structure, it would take some time to explain the complete nesting structure here, it's faster to simply look at the code...).
The scrolling canvas jumps to the top in some cases.
To reproduce the problems:
- a) Once the sectionStack sections are expanded and the sectionStack was scrolled down a bit, drag one of the canvases in the second section into another column of the same section. When the canvas was dropped, the scrolled area jumps to the top.
- b) Preparation: move a Canvas to one column in the second sectionStack, so that it is longer than the other columns. Scroll down a bit.
Now start dragging the last Canvas away from that colum. The scrolled area immediately jumps to the top.
- c) When you scroll back down with the mouse wheel while still dragging the canvas and then drop the canvas back into another column, the scrolled area again jumps to the top.
Points of interest:
- this behavior only happens in FF, IE works.
- I've noticed in my firebug that the height attribute of the column's <div> gets changed several times when a canvas gets picked up, and after a second or so the height value stabilizes.
- dragging and dropping in the last section stack works fine, no scroll-back happens.
- The SmartGWT 2.5 release notes already talked about a solved scroll-back problem for forms, but didn't mention dragging...
Be sure your post includes:
1. the SmartGWT or SmartClient version and browser version(s) involved;
- SmartGWT 2.5 LGPL nightly build 2011-11-10
- Reproduced with FF 4 on Windows 7, FF 6 and 7 on Linux.
3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);
I've attached the log output with layout/sizing/scrolling info log for b) and c).
4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and
- no stack trace available.
5. sample code.
see attachment.
If I can do anything to further identify the cause, just tell me.
Greetings,
Klaus
I've hit some problems when dragging a canvas around between nested Layouts in a SectionStack in a scrolling Canvas (the attachments contain a demo with one such nesting structure, it would take some time to explain the complete nesting structure here, it's faster to simply look at the code...).
The scrolling canvas jumps to the top in some cases.
To reproduce the problems:
- a) Once the sectionStack sections are expanded and the sectionStack was scrolled down a bit, drag one of the canvases in the second section into another column of the same section. When the canvas was dropped, the scrolled area jumps to the top.
- b) Preparation: move a Canvas to one column in the second sectionStack, so that it is longer than the other columns. Scroll down a bit.
Now start dragging the last Canvas away from that colum. The scrolled area immediately jumps to the top.
- c) When you scroll back down with the mouse wheel while still dragging the canvas and then drop the canvas back into another column, the scrolled area again jumps to the top.
Points of interest:
- this behavior only happens in FF, IE works.
- I've noticed in my firebug that the height attribute of the column's <div> gets changed several times when a canvas gets picked up, and after a second or so the height value stabilizes.
- dragging and dropping in the last section stack works fine, no scroll-back happens.
- The SmartGWT 2.5 release notes already talked about a solved scroll-back problem for forms, but didn't mention dragging...
Be sure your post includes:
1. the SmartGWT or SmartClient version and browser version(s) involved;
- SmartGWT 2.5 LGPL nightly build 2011-11-10
- Reproduced with FF 4 on Windows 7, FF 6 and 7 on Linux.
3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);
I've attached the log output with layout/sizing/scrolling info log for b) and c).
4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and
- no stack trace available.
5. sample code.
see attachment.
If I can do anything to further identify the cause, just tell me.
Greetings,
Klaus
Comment