summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-09 12:34:00 +0000
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-09 12:34:00 +0000
commit5683a35141c1804cd219d214d8653eb8a1322016 (patch)
treebdb7a9d82d63c3cbe6dc764ce456df9d1a6fbf00
parente85678080e75945da0c9ec32a925167409fc3949 (diff)
PlacesGroup: don't scale the extra pixel, or it would cause troubles
(bzr r4008.14.12)
-rwxr-xr-xdash/PlacesGroup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dash/PlacesGroup.cpp b/dash/PlacesGroup.cpp
index 6cd444aa7..3aafc78f9 100755
--- a/dash/PlacesGroup.cpp
+++ b/dash/PlacesGroup.cpp
@@ -500,7 +500,8 @@ void PlacesGroup::Draw(nux::GraphicsEngine& graphics_engine,
int bg_width = _background_layer->GetDeviceTexture()->GetWidth();
bg_geo.x = std::max(bg_geo.width - bg_width, 0);
- bg_geo.width = std::min(bg_width, bg_geo.GetWidth()) + (1_em).CP(scale()); // to render into a space left over by the scrollview
+ // to render into a space left over by the scrollview (1 has NOT to be scaled)
+ bg_geo.width = std::min(bg_width, bg_geo.GetWidth()) + 1;
bg_geo.height = _background->GetHeight();
_background_layer->SetGeometry(bg_geo);