Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef-dev] FigureCanvas & Linux

I have encountered a problem using FigureCanvas under Linux OS. It uses root figure which calls layoutViewport() on validation. In my case it results in infinite validating loop, because:

1. Method layoutViewport() calls scrollbar.setVisible() for both horizontal and vertical scrollbars.

2. Method setVisible() of scrollbar sends SWT.RESIZE event for its (scrollbar’s) parent, and it starts new validation cycle again.

 

The problem can be solved by not calling scrollbar.setVisibility() when its current visibility state is the same as new.

Of course, method layoutViewport() has private access, and my workaround was in copying the whole class FigureCanvas.

 

Is it a known issue or I do something wrong? Should I submit appropriate request in eclipse bug database?

 

Thank you,

Kostya.


Back to the top