Reset ScrollPane [message #202893] |
Mon, 14 November 2005 22:05 |
Eclipse User |
|
|
|
Originally posted by: cleversons.gmail.com
Hi all,
I have a ScrollPane where I put my root figure which in turns has a node
and a connection layer. After drawing all my nodes and connections, the
root figure gets very big and the vertical and horizontal scroll bars
automatically appear in the ScrollPane. The application has a filter which
may be used to reduce the number of displayed nodes. So, after starting
the application, the user applies one filter and the number of nodes goes
down to a few nodes. The problem is that the scroll bars are not updated.
Even if there are just 2 or 3 nodes, the user can scroll the pane as if
all the other nodes were still there. How do I reset the status of the
scroll pane to reconsider the new content and then hide the bars
accordingly? I've already tried to invalidate the ScrollPane but it didn't
work.
Thanks in advance
|
|
|
Re: Reset ScrollPane [message #203169 is a reply to message #202893] |
Fri, 18 November 2005 19:24 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
When editparts are filtered, are the figures being removed or just being
hidden? XYLayout's probably including hidden figures in its layout as well.
Overriding its getConstraint() method to return null for hidden figures
might fix the problem.
"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:627dd6a04366c6c3ef73e36e7b4136dd$1@www.eclipse.org...
> Hi all,
>
> I have a ScrollPane where I put my root figure which in turns has a node
> and a connection layer. After drawing all my nodes and connections, the
> root figure gets very big and the vertical and horizontal scroll bars
> automatically appear in the ScrollPane. The application has a filter which
> may be used to reduce the number of displayed nodes. So, after starting
> the application, the user applies one filter and the number of nodes goes
> down to a few nodes. The problem is that the scroll bars are not updated.
> Even if there are just 2 or 3 nodes, the user can scroll the pane as if
> all the other nodes were still there. How do I reset the status of the
> scroll pane to reconsider the new content and then hide the bars
> accordingly? I've already tried to invalidate the ScrollPane but it didn't
> work.
>
> Thanks in advance
>
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds