Back out one of the previous changes, it causes a crash. Whoops!
[WebKit-https.git] / WebCore / kwq / KWQScrollView.mm
index e231ac0a6af945332d65d22058f675fe20ec8d1b..9a80c29fd33221b0a7e05bf0abeda5bb6c4030d1 100644 (file)
@@ -296,7 +296,9 @@ void QScrollView::addChild(QWidget* child, int x, int y)
 {
     ASSERT(child != this);
     
-    child->move(x, y);
+    // we don't need to do the offscreen position initialization that KDE needs
+    if (x != -500000)
+       child->move(x, y);
 
     KWQ_BLOCK_EXCEPTIONS;