Bugfixes on Maemo5 platform
[quicknewsreader] / qml / QuickNewsReader / content / view / NewsComments.qml
index 8b136d6..c2876fe 100644 (file)
@@ -44,11 +44,15 @@ Item {
             }
 
             WebView {
-                id: newsCommentsWebView
                 width: column.width
+                id: newsCommentsWebView
                 url: commentURL
                 preferredWidth: column.width
-//                preferredHeight: parent.height - titleRow.height
+
+                // on the maemo platform, the background is dark gray by default, so change it to white
+                onLoadFinished: {
+                    newsCommentsWebView.evaluateJavaScript("document.bgColor = '#FFFFFF';")
+                }
             }
         }
     }