SmartGit 3: Horizontal scrollbar appears in "Directories" pane when it shouldn't

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SmartGit 3: Horizontal scrollbar appears in "Directories" pane when it shouldn't

Eugene Kashpureff
The horizontal scrollbar at the bottom of the "Directories" pane does not appear to properly detect when the contents of the pane have shrunk to fit within the pane.

I added a new repository, added a remote, fetched, and then checked out the 'master' branch. This changed the refspec listed from "Unknown branch/commit" to "master", as it should. The horizontal scrollbar at the bottom, however, doesn't pick up on this, as pictured: http://i.imgur.com/djp7P.png

Closing+reopening SmartGit or changing Projects fixes this, but pushing the Refresh button does not.

Platform: Windows 7, JRE 7u3, SmartGit v3.

Reply | Threaded
Open this post in threaded view
|

Re: SmartGit 3: Horizontal scrollbar appears in "Directories" pane when it shouldn't

Eugene Kashpureff
I have just noticed that the Output pane is exhibiting the same behavior, as can be seen in the screenshot given. I hid the output of the "Check Out" command, which should make the horizontal scroller disappear.... yet it remains.

--- In [hidden email], "Eugene Kashpureff" <eugenekay@...> wrote:
>
> The horizontal scrollbar at the bottom of the "Directories" pane does not appear to properly detect when the contents of the pane have shrunk to fit within the pane.
>
> I added a new repository, added a remote, fetched, and then checked out the 'master' branch. This changed the refspec listed from "Unknown branch/commit" to "master", as it should. The horizontal scrollbar at the bottom, however, doesn't pick up on this, as pictured: http://i.imgur.com/djp7P.png
>
> Closing+reopening SmartGit or changing Projects fixes this, but pushing the Refresh button does not.
>
> Platform: Windows 7, JRE 7u3, SmartGit v3.
>


Reply | Threaded
Open this post in threaded view
|

Re: SmartGit 3: Horizontal scrollbar appears in "Directories" pane when it shouldn't

syntevo Support
In reply to this post by Eugene Kashpureff
03/05/2012 02:10 - Eugene Kashpureff wrote:

> The horizontal scrollbar at the bottom of the "Directories" pane does not appear
> to properly detect when the contents of the pane have shrunk to fit within the
> pane.
>
> I added a new repository, added a remote, fetched, and then checked out the
> 'master' branch. This changed the refspec listed from "Unknown branch/commit" to
> "master", as it should. The horizontal scrollbar at the bottom, however, doesn't
> pick up on this, as pictured: http://i.imgur.com/djp7P.png
>
> Closing+reopening SmartGit or changing Projects fixes this, but pushing the
> Refresh button does not.
>
> Platform: Windows 7, JRE 7u3, SmartGit v3.

Hello,

The root cause of this problem lies in SWT, the new GUI library we're using in SmartGit 3. Basically, the problem is that SWT's tree component only grows the horizontal bar, but doesn't shrink it. It seems the SWT developers have been aware of this problem since 2007, but haven't found a solution so far. Here's the relevant SWT bug report, in case you're interested: https://bugs.eclipse.org/bugs/show_bug.cgi?id=187029

--
Best regards,
Nam Quang Tran
=============
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com