Use LO_GetDocumentMargins, not fe_GetMargin, since the latter always returns 8/8 instead of what the document specifies. For example, resizing www.mozilla.org puts an 8x8 margin on the document, when the HTML specifies 0x0
git-svn-id: svn://10.0.0.236/trunk@2588 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
03e38ae032
commit
decebf4ea9
@ -1283,7 +1283,7 @@ fe_scroller_resize (Widget widget, XtPointer closure)
|
||||
{
|
||||
int32 margin_w, margin_h;
|
||||
|
||||
fe_GetMargin(context, &margin_w, &margin_h);
|
||||
LO_GetDocumentMargins(context, &margin_w, &margin_h);
|
||||
|
||||
LO_RelayoutOnResize(context, w, h, margin_w, margin_h);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user