<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Norwinter Studios &#187; SWT</title>
	<atom:link href="http://www.norwinter.com/tag/swt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.norwinter.com</link>
	<description>Home of Bouncy Hunters and Konkret.</description>
	<lastBuildDate>Wed, 14 Oct 2009 17:18:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Strange OS X SWT Table bug: scrollbar position wrong compared to content</title>
		<link>http://www.norwinter.com/2009/06/08/strange-os-x-swt-table-bug-scrollbar-position-wrong-compared-to-content/</link>
		<comments>http://www.norwinter.com/2009/06/08/strange-os-x-swt-table-bug-scrollbar-position-wrong-compared-to-content/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 19:45:15 +0000</pubDate>
		<dc:creator>siker</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[SWT]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.norwinter.com/2009/06/08/strange-os-x-swt-table-bug-scrollbar-position-wrong-compared-to-content/</guid>
		<description><![CDATA[Today I saw a strange SWT bug which I couldn&#8217;t find much on when I searched for it online. In Mac OS X with a Table widget, sometimes pressing the Home or End keys on the keyboard would make the scrollbar move without the content actually moving. So for instance maybe you were scrolled towards [...]]]></description>
			<content:encoded><![CDATA[<p>Today I saw a strange SWT bug which I couldn&#8217;t find much on when I searched for it online. In Mac OS X with a Table widget, sometimes pressing the Home or End keys on the keyboard would make the scrollbar move without the content actually moving. So for instance maybe you were scrolled towards the bottom and hit the Home key to get to the top: the bug would make you still see the same table rows even that the blue scrollbar marker would hop to the top. Even weirder, if you scrolled with the mouse wheel after that the scrollbar would snap right back to where you started and scroll like if you had never hit Home to begin with.</p>
<p>The solution was to add an SWT.KeyDown listener on the table and intercept any Home or End keyboard events. Set e.doit = false, then use table.setTopIndex() to change the viewing position in the table by hand. E.g. just reimplement the Home and End keys in your own code.</p>
<p>This worked fine for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.norwinter.com/2009/06/08/strange-os-x-swt-table-bug-scrollbar-position-wrong-compared-to-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
