Hi ,
I have a VLayout component , with many grids , forms embedded into it. Hence it shows up with a scroll bar , which is fine.
This layout has a button which opens a new GWT window .
When i open this window the scroll position on the original layout is lost. For example if at the time of opening the window the scroll top was 300 , it is reset to 0.
When i close the window, i.e. window.clear() , the scroll on the layout does not return back to the original position to 300 but stays at 0.
This gives a very bad user experience.
On inspecting the event handler log , i can see the following:
I am using SwmartGWT3.0 power edition.
Thanks.
Ravi.
I have a VLayout component , with many grids , forms embedded into it. Hence it shows up with a scroll bar , which is fine.
This layout has a button which opens a new GWT window .
When i open this window the scroll position on the original layout is lost. For example if at the time of opening the window the scroll top was 300 , it is reset to 0.
When i close the window, i.e. window.clear() , the scroll on the layout does not return back to the original position to 300 but stays at 0.
This gives a very bad user experience.
On inspecting the event handler log , i can see the following:
I am using SwmartGWT3.0 power edition.
Code:
16:57:50.515:RDQ0:DEBUG:scrolling:isc_VLayout_14:scrollTo(undefined, 0), reason: Reset scroll position for child content reflow 16:57:51.109:RDQ0:INFO:scrolling:isc_InsiderSearchWindow_12_1_body:Drawn size: 1134 by 186, specified: 1134 by 186, scrollbar state: 16:57:51.124:TMR1:DEBUG:EventHandler:mousing out of [HLayout ID:isc_HLayout_40] mousing over [Button ID:isc_Button_57] 16:57:53.406:MDN2:INFO:EventHandler:Target Canvas for event 'mousedown': [Button ID:isc_Button_57] 16:57:53.406:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Button ID:isc_Button_57]' has handler: Canvas.prepareForDragging() 16:57:53.421:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[HLayout ID:isc_HLayout_40]' has handler: Canvas.prepareForDragging() 16:57:53.421:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VLayout ID:isc_VLayout_102]' has handler: Canvas.prepareForDragging() 16:57:53.421:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VLayout ID:isc_VLayout_100]' has handler: Canvas.prepareForDragging() 16:57:53.437:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Layout ID:isc_InsiderSearchWindow_1_body]' has handler: Canvas.prepareForDragging() 16:57:53.437:MDN2:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Window ID:isc_InsiderSearchWindow_1]' has handler: Canvas.prepareForDragging() 16:57:53.437:MDN2:DEBUG:EventHandler:Event 'prepareForDragging' bubbled to top 16:57:53.453:MDN2:DEBUG:EventHandler:Event 'mouseDown' bubbled to top 16:57:53.453:selectionchange3:INFO:EventHandler:Target Canvas for event 'selectionchange': [DynamicForm ID:isc_DynamicForm_58] 16:57:53.468:selectionchange3:DEBUG:EventHandler:Event 'selectionChange' bubbled to top 16:57:53.499:selectionchange3:DEBUG:EventHandler:Event 'mouseStillDown' bubbled to top 16:57:53.734:MUP6:INFO:EventHandler:Target Canvas for event 'mouseup': [Button ID:isc_Button_57] 16:57:53.749:MUP6:DEBUG:EventHandler:Event 'mouseUp' bubbled to top 16:57:53.765:MUP6:DEBUG:EventHandler:Event 'click' bubbled to top 16:57:54.499:SCR9:DEBUG:scrolling:isc_VLayout_14:scrollTo(0, 264), reason: nativeScroll 16:57:54.687:WARN:RPCManager:Multiple RPCRequests with params attribute in one transaction - merging 16:57:54.890:TMR2:DEBUG:EventHandler:mousing over [ScreenSpan ID:isc_EH_screenSpan] 16:57:54.937:RDQ5:DEBUG:scrolling:isc_VLayout_14:scrollTo(undefined, 0), reason: Reset scroll position for child content reflow 16:57:55.218:XRP0:WARN:RPCManager:Multiple RPCRequests with params attribute in one transaction - merging 16:57:55.421:RDQ3:INFO:scrolling:isc_InsiderListGridPanel_11_0_body:Drawn size: 834 by 126, specified: 834 by 126, scrollbar state: 16:57:55.656:SCR0:DEBUG:scrolling:isc_VLayout_14:scrollTo(0, 264), reason: nativeScroll 16:57:56.093:RDQ5:INFO:scrolling:isc_InsiderListGridPanel_11_0_body:Drawn size: 834 by 126, specified: 834 by 126, scrollbar state: 16:57:56.187:RDQ8:DEBUG:scrolling:isc_VLayout_14:scrollTo(undefined, 0), reason: Reset scroll position for child content reflow
Thanks.
Ravi.
Comment