Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 291156

Summary: [Theming][Spinner] Changing images occurs strange behaviour
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot
none
SpinnerIcons none

Description Holger Staudacher CLA 2009-10-02 03:45:30 EDT
If you change the up and down images of a spinner and the images are bigger then the original one they overlay the spinner's border. I will attach sample up and down images and a screenshot of this behaviour.
Comment 1 Holger Staudacher CLA 2009-10-02 03:46:36 EDT
Created attachment 148610 [details]
Screenshot

The screenshot of the overlay. See the right side of the spinner, the images overlay the border.
Comment 2 Holger Staudacher CLA 2009-10-02 03:48:08 EDT
Created attachment 148611 [details]
SpinnerIcons

The zip file contains an up and down button for the spinner to reproduce the error.
Comment 3 Ivan Furnadjiev CLA 2009-10-02 03:58:29 EDT
Holger, there is a theming property "width" for these buttons. Can you try to set it like this:
Spinner-DownButton {
	width: 18;
}
The default value of this property is 15.
Comment 4 Holger Staudacher CLA 2009-10-02 04:04:55 EDT
Thank you Ivan, I saw it a minute ago ;)

But I think it would be more comfortable if the button width depends on the images. What do you think?
Comment 5 Ivan Furnadjiev CLA 2009-10-02 04:13:08 EDT
Actually the button width is not based on image width. You can provide an button icon 5x5 px, which will be centered in the button, but the button size will be the same and not 5x5 :-). That's why we have added this property.
Comment 6 Holger Staudacher CLA 2009-10-02 04:32:57 EDT
OK, this make sense. So I think there is no need to change this, but a documentation of this would be good ;)