Commit 9df404ab authored by alp@webkit.org's avatar alp@webkit.org

2008-03-28 Jasper Bryant-Greene <jasper@unix.geek.nz>

        Reviewed by Alp Toker.

        http://bugs.webkit.org/show_bug.cgi?id=18061
        PlatformScrollBarGtk attempts to allocate negative width and/or height for widgets

        Missing clampNegativeToZero() call meant that we tried to allocate widgets with negative width and/or height.

        * platform/gtk/PlatformScrollBarGtk.cpp:
        (PlatformScrollbar::geometryChanged):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 347c0326
2008-03-28 Jasper Bryant-Greene <jasper@unix.geek.nz>
Reviewed by Alp Toker.
http://bugs.webkit.org/show_bug.cgi?id=18061
PlatformScrollBarGtk attempts to allocate negative width and/or height for widgets
Missing clampNegativeToZero() call meant that we tried to allocate widgets with negative width and/or height.
* platform/gtk/PlatformScrollBarGtk.cpp:
(PlatformScrollbar::geometryChanged):
2008-03-28 Brady Eidson <beidson@apple.com>
Reviewed by Darin
......@@ -122,7 +122,11 @@ void PlatformScrollbar::geometryChanged()
FrameView* frameView = static_cast<FrameView*>(parent());
IntRect windowRect = IntRect(frameView->contentsToWindow(frameGeometry().location()), frameGeometry().size());
GtkAllocation allocation = { windowRect.x(), windowRect.y(), windowRect.width(), windowRect.height() };
IntSize sz = frameGeometry().size();
sz.clampNegativeToZero();
GtkAllocation allocation = { windowRect.x(), windowRect.y(), sz.width(), sz.height() };
gtk_widget_size_allocate(gtkWidget(), &allocation);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment