Fixed bug 328921. Resizing no longer jumps to the top of the document. The

position that you are at when you resize is remembered.
This commit is contained in:
nisheeth%netscape.com 1998-10-13 10:01:53 +00:00
Родитель ce646c2682
Коммит e06a1c658f
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -231,10 +231,7 @@ void LO_RelayoutOnResize(MWContext *context, int32 width, int32 height, int32 le
state->top_state->resize_reload);
/* Reset state for force loading images. */
LO_SetForceLoadImage(NULL, FALSE);
/* position the document */
FE_SetDocPosition ( context, FE_VIEW, 0, docY );
LO_SetForceLoadImage(NULL, FALSE);
/* update the final document dimensions */
state->y += state->win_bottom;
@ -271,6 +268,9 @@ void LO_RelayoutOnResize(MWContext *context, int32 width, int32 height, int32 le
CL_SetCompositorOffscreenDrawing(compositor, save_offscreen_mode);
}
/* position the document */
FE_SetDocPosition ( context, FE_VIEW, 0, docY );
lo_rl_DestroyRelayoutState(relay_state);
LO_UnlockLayout();