1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

fixed bugs of resized widgets

This commit is contained in:
kojima
2000-11-11 18:08:10 +00:00
parent 4d41658e1a
commit 52308a0abc
8 changed files with 116 additions and 17 deletions

View File

@@ -73,6 +73,8 @@ WMCreateScrollView(WMWidget *parent)
sPtr->view->delegate = &_ScrollViewViewDelegate;
W_SetViewBackgroundColor(sPtr->viewport,
WMBlackColor(WMWidgetScreen(parent)));
sPtr->viewport->flags.mapWhenRealized = 1;
WMCreateEventHandler(sPtr->view, StructureNotifyMask|ExposureMask,
@@ -163,7 +165,7 @@ reorganizeInterior(WMScrollView *sPtr)
W_ResizeView(sPtr->viewport, cw, ch);
W_MoveView(sPtr->viewport, cx, cy);
if (sPtr->flags.hasHScroller) {
WMResizeWidget(sPtr->hScroller, hw, 20);
WMMoveWidget(sPtr->hScroller, hx, hy);