CoolBar with overlapped CoolItems [message #651932] |
Wed, 02 February 2011 01:22  |
Eclipse User |
|
|
|
Hi, everybody!
I've got the problem when CoolItems can be contained by CoolBar on one row and the CoolBar have to relayout them using two rows. But sometimes one from our CoolItems is wrongly positioned on first row and overlapped by other items. Cause of this is overlapped CoolItem should appear on the second row, but do on the first one. After long time investigation I've found that following fixes in CoolItem.js resolve the problem.
// reparenting to enable coolitem dragging
setControl : function( control ) {
if( control != null ) {
// TODO [tb] : Control positioning is already handled by server
control.setTop( this.getTop() );
control.setLeft( this.getLeft()
+ org.eclipse.swt.widgets.CoolItem.CONTROL_OFFSET );
control.setDisplay( true );
}
if( this._control != null ) {
this._control.setDisplay( false );
}
this._control = control;
},
Using
control.setTop( this.getTop() );
instead of
I just want to inform you about this problem and its fixes. If you have some other suggestions I will be appreciated.
Best regards,
Yury.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds