Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Laval <jeremie.laval@gmail.com>2012-06-26 21:41:16 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2012-06-26 21:41:16 +0400
commit5e440a0b7ed75c23d604f424f9ba256eaf042b2f (patch)
tree3e1baa05f84b89092cbe2993a3e2f30bb2e15313 /MyDocument.cs
parent876bbdaa03e2207b5e4f3cd31e07005028cc7358 (diff)
[macdoc] More Lion special casing
Diffstat (limited to 'MyDocument.cs')
-rw-r--r--MyDocument.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MyDocument.cs b/MyDocument.cs
index fb99a35..9374664 100644
--- a/MyDocument.cs
+++ b/MyDocument.cs
@@ -116,7 +116,8 @@ namespace macdoc
{
outlineView.DataSource = new DocTreeDataSource (this);
outlineView.Delegate = new OutlineDelegate (this);
- outlineView.EnclosingScrollView.HorizontalScrollElasticity = outlineView.EnclosingScrollView.VerticalScrollElasticity = NSScrollElasticity.None;
+ if (AppDelegate.IsOnLion)
+ outlineView.EnclosingScrollView.HorizontalScrollElasticity = outlineView.EnclosingScrollView.VerticalScrollElasticity = NSScrollElasticity.None;
}
void SetupSearch ()
@@ -257,7 +258,8 @@ namespace macdoc
if (ts < loadUrlTimestamp)
return;
currentUrl = node == null ? url : node.PublicUrl;
- InvalidateRestorableState ();
+ if (AppDelegate.IsOnLion)
+ InvalidateRestorableState ();
if (addToHistory)
history.AppendHistory (new LinkPageVisit (this, currentUrl));
LoadHtml (res);