Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Update scroll of the FigureCanvas
Update scroll of the FigureCanvas [message #489597] Mon, 05 October 2009 08:06 Go to next message
Aurelien Pupier is currently online Aurelien Pupier
Messages: 574
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

Structure :
RootEditPart
- DiagramEditPart
- RectangleFigure

When I update the size of the RectangleFigure (setBounds), The scrollbar is not updated.

When I get down using keys on element inside my RectangleFigure, the bottom of the RectangleFigure is revealed and the scrollbar updated but when I re-up the bottom is re-hidden.

I don't know what is responsible for that...

So if you have any hints, will happy to hear about them

Thanks by advance, hoping I was understandable

Aurelien Pupier


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Re: Update scroll of the FigureCanvas [message #489600 is a reply to message #489597] Mon, 05 October 2009 09:06 Go to previous message
Aurelien Pupier is currently online Aurelien Pupier
Messages: 574
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi again, I found some info that I would share in oreder to know if I'm on the right way :

a related post :
http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg1 4091.html
but there is no real solution

anyway guiding by that I found in FigureCanvas.computeSize :
// TODO Still doesn't handle scrollbar cases, such as when a constrained width
// would require a horizontal scrollbar, and therefore additional height.

Will it be the reason? But why does it work in some "classic" cases?



Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Previous Topic:adding title while printing GEF editor
Next Topic:Alternative of FreeFormLayer
Goto Forum:
  


Current Time: Thu Oct 30 12:34:22 GMT 2014

Powered by FUDForum. Page generated in 0.02189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software