Skip to content
Browse files

log: fix webview scrolling issues

  • Loading branch information...
1 parent 01ddc0a commit 0cf20f17b3770ead7bc7f54f44af0215cadb49e9 @hbons committed Jun 6, 2011
Showing with 2 additions and 13 deletions.
  1. +2 −13 SparkleShare/SparkleLog.cs
View
15 SparkleShare/SparkleLog.cs
@@ -58,7 +58,7 @@ public SparkleLog (string path) : base ("")
Resizable = false;
BorderWidth = 0;
- SetPosition (WindowPosition.Center);
+ SetPosition (WindowPosition.Center);
// Open slightly off center for each consecutive window
if (SparkleUI.OpenLogs.Count > 0) {
@@ -107,7 +107,7 @@ private void CreateEventLog ()
}
};
- ScrolledWindow.AddWithViewport (WebView);
+ ScrolledWindow.Add (WebView);
LogContent.Add (ScrolledWindow);
layout_vertical.PackStart (LogContent, true, true, 0);
@@ -188,17 +188,6 @@ private void AddHTML ()
Spinner.Stop ();
LogContent.Remove (LogContent.Child);
- ScrolledWindow = new ScrolledWindow () {
- HscrollbarPolicy = PolicyType.Never
- };
-
- Viewport viewport = new Viewport () {
- ShadowType = ShadowType.None
- };
-
- WebView.Reparent (viewport);
- ScrolledWindow.Add (viewport);
-
WebView.LoadString (HTML, null, null, "file://");
LogContent.Add (ScrolledWindow);

0 comments on commit 0cf20f1

Please sign in to comment.
Something went wrong with that request. Please try again.