Update allocation of all child widgets after scrolling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -339,10 +339,11 @@ extern "C" {
|
|||||||
static void scroll_adjust(GtkWidget* widget, void* data)
|
static void scroll_adjust(GtkWidget* widget, void* data)
|
||||||
{
|
{
|
||||||
const AdjustData* p = static_cast<AdjustData*>(data);
|
const AdjustData* p = static_cast<AdjustData*>(data);
|
||||||
if (widget->window == p->window)
|
|
||||||
{
|
|
||||||
widget->allocation.x += p->dx;
|
widget->allocation.x += p->dx;
|
||||||
widget->allocation.y += p->dy;
|
widget->allocation.y += p->dy;
|
||||||
|
|
||||||
|
if (widget->window == p->window)
|
||||||
|
{
|
||||||
// GtkFrame requires a queue_resize, otherwise parts of
|
// GtkFrame requires a queue_resize, otherwise parts of
|
||||||
// the frame newly exposed by the scroll are not drawn.
|
// the frame newly exposed by the scroll are not drawn.
|
||||||
// To be safe, do it for all widgets.
|
// To be safe, do it for all widgets.
|
||||||
|
Reference in New Issue
Block a user