*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,7 +256,10 @@ void wxHtmlWindow::CreateLayout()
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
GetClientSize(&ClientWidth, &ClientHeight);
|
GetClientSize(&ClientWidth, &ClientHeight);
|
||||||
|
#ifndef __WXMSW__
|
||||||
|
// VS : this looks extremely ugly under windoze, better fix needed!
|
||||||
SetScrollbars(1, 1, 0, ClientHeight * 2); // always on
|
SetScrollbars(1, 1, 0, ClientHeight * 2); // always on
|
||||||
|
#endif
|
||||||
GetClientSize(&ClientWidth, &ClientHeight);
|
GetClientSize(&ClientWidth, &ClientHeight);
|
||||||
m_Cell -> Layout(ClientWidth);
|
m_Cell -> Layout(ClientWidth);
|
||||||
if (ClientHeight < m_Cell -> GetHeight()) {
|
if (ClientHeight < m_Cell -> GetHeight()) {
|
||||||
@@ -267,6 +270,7 @@ void wxHtmlWindow::CreateLayout()
|
|||||||
}
|
}
|
||||||
else { /* we fit into window, no need for scrollbars */
|
else { /* we fit into window, no need for scrollbars */
|
||||||
SetScrollbars(1, 1, 0, 0); // disable...
|
SetScrollbars(1, 1, 0, 0); // disable...
|
||||||
|
GetClientSize(&ClientWidth, &ClientHeight);
|
||||||
m_Cell -> Layout(ClientWidth); // ...and relayout
|
m_Cell -> Layout(ClientWidth); // ...and relayout
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user