Community
Participate
Working Groups
If a Icon is smaller than the widget, the icon is repeated inside the widget. We need the ability to set the background position and the background repeat. Solution: Attached Patch.
Created attachment 205810 [details] Fix for enhancment request
This seems to be doable but the solution would have to work with all supported browsers. It's unclear to what extent these properties are supported in IE7 and IE8. Resetting the target milestone attribute. Stephan, please allow the RAP team to make our own schedules. If you need a certain fixes quickly, please contact EclipseSource.
(In reply to comment #2) > Resetting the target milestone attribute. Stephan, please allow the RAP team to > make our own schedules. If you need a certain fixes quickly, please contact > EclipseSource. I saw the target milestone as wish-milestone. I won't set it in future bug entries. Thanks for the hint.
(In reply to comment #2) > This seems to be doable but the solution would have to work with all supported > browsers. It's unclear to what extent these properties are supported in IE7 and > IE8. As I didn't test it with IE7 I can't say for certain, but in IE8 it works. Here "CSS background-repeat Property":http://www.w3schools.com/cssref/pr_background-repeat.asp and here "CSS background-position Property":http://www.w3schools.com/cssref/pr_background-position.asp it says that its all supported in all major browsers safe the "inherit" property.
I would love to see this supported in RAP. Is IE7 (and IE8) still an "A" grade browser?
Even though IE7's market share is constantly decreasing, I'm afraid it's too early to drop IE7 support in RAP 2.0. If the properties work in IE8, maybe we could support them in the theming, and add a warning that they won't work with IE7?
Actually, the GraphicsMixin makes the entire topic somewhat more complex, but it might also help with that IE7 issue.
Created attachment 217426 [details] Correction of last patch Works with current git-head
Added background-repeat and background-position CSS properties to Button, FileUpload, Composite, Label, CLabel and Link. No server-side API. Fixed with commits b5feb95c9c64e4ddc4f0d4ddc1312a1d43222065 and 315545ac5f83aba3d256970954e23230d3ab2b95. These properties have no effect if rounded borders are used in IE8 and IE7 (GraphicsMixin (VML)). If support for additional widgets is needed please open a separate bug.
One additional remark: background-position currently supports one of these values: left top left center left bottom right top right center right bottom center top center center center bottom Percents (background-position: 10% 20%) and positioning by pixels (background-position: 10px 20px) are currently not supported.