[jbosstools-issues] [JBoss JIRA] (JBIDE-13953) Weird scrollbar behavior

Fred Bricon (JIRA) jira-events at lists.jboss.org
Mon Apr 15 09:38:53 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-13953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767257#comment-12767257 ] 

Fred Bricon commented on JBIDE-13953:
-------------------------------------

Snjeza, the Buzz section's height is dynamic, adapting to the whole body resizing. Removing the control listener makes the Buzz scrollable area expand to the size of its contents, making it larger than the visible boundaries thus adding a vertical scroller to the main window. 

I tries to tweak the resize method a bit, it seemed to improve the whole thing a lot at first, but the better-look didn't stick for long.
{noformat}
int height = form.getClientArea().height - (projectsSection.getSize().y + tutorialsSection.getSize().y);
int width =  size.x - (documentationSection.getSize().x); //was wrongly using getSize().y
GridData gd = (GridData) buzzSection.getLayoutData();
gd.heightHint = height - 35; //reduced height by 10
gd.widthHint = width - 45;
Point computedSize = buzzPageBook.computeSize(gd.widthHint, SWT.DEFAULT);

buzzScrollComposite.setMinSize(gd.widthHint, computedSize.y);

recomputeScrollComposite(buzzScrollComposite, buzzPageBook);
if (force) { //minimized layout / reflow
  form.layout(true, true);
  form.reflow(true);
}
{noformat}
                
> Weird scrollbar behavior
> ------------------------
>
>                 Key: JBIDE-13953
>                 URL: https://issues.jboss.org/browse/JBIDE-13953
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 4.1.0.Alpha2
>            Reporter: Radim Hopp
>            Assignee: Snjezana Peco
>             Fix For: 4.1.0.Beta1
>
>         Attachments: central.png
>
>
> When resizing Central, left and bottom scrollbars are flickering.
> On linux (KDE) I'm also unable to resize (enlarge) central so the scrollbars disappears (in other words: scrollbars stays there, no matter how "large" central editor is)
> Screencast: http://youtu.be/OjwnmRJebuk
> Screenshot:
> !central.png!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list