1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-26 09:35:49 +01:00

_ fixed bug in resizing a scrollview

- read both XLFDs and XFT style font names from config files (xft case only)
This commit is contained in:
dan
2003-06-12 21:21:57 +00:00
parent 64468fcf63
commit a4c986fa1b
3 changed files with 18 additions and 6 deletions

View File

@@ -246,15 +246,16 @@ WMResizeScrollViewContent(WMScrollView *sPtr, unsigned int width,
h += 4;
x = 1;
}
if (sPtr->flags.hasVScroller) {
width -= W_VIEW(sPtr->hScroller)->size.width;
WMResizeWidget(sPtr->vScroller, 20, h);
}
width -= W_VIEW(sPtr->vScroller)->size.width;
}
if (sPtr->flags.hasHScroller) {
height -= W_VIEW(sPtr->hScroller)->size.height;
WMResizeWidget(sPtr->hScroller, w, 20);
WMMoveWidget(sPtr->hScroller, x, h);
height -= W_VIEW(sPtr->hScroller)->size.height;
}
W_ResizeView(sPtr->view, w, h);