<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: WebKit, previews, and scrolling</title>
	<atom:link href="http://outofcheese.org/2003/11/18/webkit-previews-and-scrolling/feed/" rel="self" type="application/rss+xml" />
	<link>http://outofcheese.org/2003/11/18/webkit-previews-and-scrolling/</link>
	<description>Redo from start....</description>
	<pubDate>Wed, 19 Nov 2008 23:36:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Brent Simmons</title>
		<link>http://outofcheese.org/2003/11/18/webkit-previews-and-scrolling/#comment-340</link>
		<dc:creator>Brent Simmons</dc:creator>
		<pubDate>Wed, 19 Nov 2003 18:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://outofcheese.org/?p=553#comment-340</guid>
		<description>Great tip! I needed that.
</description>
		<content:encoded><![CDATA[<p>Great tip! I needed that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Wagner</title>
		<link>http://outofcheese.org/2003/11/18/webkit-previews-and-scrolling/#comment-339</link>
		<dc:creator>Dominik Wagner</dc:creator>
		<pubDate>Wed, 19 Nov 2003 06:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://outofcheese.org/?p=553#comment-339</guid>
		<description>Have a look at SubEthaEdit. Here we faced the same problem and came up with a simple solution.

In fact it's very easy with the WebKit. When you reload:
- Search for the correct ScrollView in the WebView
- remember its documentVisibleRect
- reload webview

on callback of the didFinishLoad:
- go to the correct ScrollView
- scrollRectToVisible

Voilá. We never would have thought of shipping SubEthaEdit with the WebPreview without this, because it's quite unusable if you really want to work with it. It's a shame BBEdit does not get it right, but well, this on of the reasons why we did SubEthaEdit in the first place.</description>
		<content:encoded><![CDATA[<p>Have a look at SubEthaEdit. Here we faced the same problem and came up with a simple solution.</p>
<p>In fact it&#8217;s very easy with the WebKit. When you reload:<br />
- Search for the correct ScrollView in the WebView<br />
- remember its documentVisibleRect<br />
- reload webview</p>
<p>on callback of the didFinishLoad:<br />
- go to the correct ScrollView<br />
- scrollRectToVisible</p>
<p>Voilá. We never would have thought of shipping SubEthaEdit with the WebPreview without this, because it&#8217;s quite unusable if you really want to work with it. It&#8217;s a shame BBEdit does not get it right, but well, this on of the reasons why we did SubEthaEdit in the first place.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
