Merge lp:~3v1n0/unity/saticcairo-text-sizes-fix into lp:unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Andrea Azzarone | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 3221 | ||||||||
Proposed branch: | lp:~3v1n0/unity/saticcairo-text-sizes-fix | ||||||||
Merge into: | lp:unity | ||||||||
Diff against target: |
300 lines (+66/-61) 3 files modified
unity-shared/SearchBar.cpp (+1/-1) unity-shared/SearchBar.h (+0/-1) unity-shared/StaticCairoText.cpp (+65/-59) |
||||||||
To merge this branch: | bzr merge lp:~3v1n0/unity/saticcairo-text-sizes-fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Andrea Azzarone (community) | Approve | ||
Review via email: mp+153554@code.launchpad.net |
Commit message
StaticCairoText: recompute the extents if they exceed the maximum size
Keep the texture the most little that we can, then adjust its position when drawing.
Description of the change
Both the visual issues introduced in recent static-cairo text fixed, but keeping the fixes of the previous branch.
See: http://
Now we we always compute the extents leaving the text to use all the spaces it needs, then we adjust it to match our maximum size.
Also the texture is using only the space it needs, while we adjust its position (based on alignment) when drawing.
To post a comment you must log in.
Works here. Changes looks good. Thanks!