[banshee] Tweak the main Last.fm contents' width calculation so it doesn't infinitely expand in Cubano



commit 6309d4effab39f97cc2e1bac5eac475a1951f476
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon May 18 12:19:54 2009 -0500

    Tweak the main Last.fm contents' width calculation so it doesn't infinitely expand in Cubano
---
 .../Banshee.Lastfm.Radio/LastfmSourceContents.cs   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs
index 3060521..e43b89f 100644
--- a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs
+++ b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs
@@ -52,7 +52,8 @@ namespace Banshee.Lastfm.Radio
 
             // Clamp the width, preventing horizontal scrolling
             SizeAllocated += delegate (object o, SizeAllocatedArgs args) {
-                main_box.WidthRequest = args.Allocation.Width - 10;
+                // TODO '- 10' worked for Nereid, but not for Cubano; properly calculate the right width we should request
+                main_box.WidthRequest = args.Allocation.Width - 30;
             };
 
             viewport.Add (main_box);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]