| Summary: | CoolBar overlap its items | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Yury <swimmer_86> | ||||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | swimmer_86 | ||||||||
| Version: | 1.3 | ||||||||||
| Target Milestone: | 1.4 M6 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Yury
Created attachment 188126 [details]
demo.png
Created attachment 188127 [details]
planning(good).png
Created attachment 188128 [details]
planning(bad).png
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
control.setTop( 0 );
This is reproducible with CVS HEAD too. Fixed in CVS HEAD by removing the control.setTop at all. As control bounds are calculated by the server, setTop is not needed. |