Skip to main content


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
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
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 - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Update scroll of the FigureCanvas [message #489600 is a reply to message #489597] Mon, 05 October 2009 09:06 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
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 - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:adding title while printing GEF editor
Next Topic:Alternative of FreeFormLayer
Goto Forum:
  


Current Time: Fri Apr 26 23:59:07 GMT 2024

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

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

Back to the top