[vlc-commits] macosx: fixed wrong calculation of ModuleListConfigControl' s size when drawn in the complete prefs

Felix Paul Kühne git at videolan.org
Mon Apr 4 11:42:41 CEST 2011


vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr  4 11:42:25 2011 +0200| [f607c70b619fe3506644d90b541e8eb70e640e2e] | committer: Felix Paul Kühne

macosx: fixed wrong calculation of ModuleListConfigControl's size when drawn in the complete prefs

closes #3947

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f607c70b619fe3506644d90b541e8eb70e640e2e
---

 modules/gui/macosx/prefs_widgets.m |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/prefs_widgets.m b/modules/gui/macosx/prefs_widgets.m
index d444d17..3230634 100644
--- a/modules/gui/macosx/prefs_widgets.m
+++ b/modules/gui/macosx/prefs_widgets.m
@@ -2187,7 +2187,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain];       \
     }
     module_list_free( p_list );
 
-    mainFrame.size.height = 30 + 18 * [o_modulearray count];
+    mainFrame.size.height = 30 + 20 * [o_modulearray count];
     mainFrame.size.width = mainFrame.size.width - LEFTMARGIN - RIGHTMARGIN;
     mainFrame.origin.x = LEFTMARGIN;
     mainFrame.origin.y = 0;
@@ -2260,7 +2260,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain];       \
         initWithIdentifier:@"Module"];
     [o_tableColumn setHeaderCell: o_headerCell];
     [o_tableColumn setDataCell: o_dataCell];
-    [o_tableColumn setWidth:388 - 17];
+    [o_tableColumn setWidth:s_rc.size.width - 34];
     [o_tableview addTableColumn: o_tableColumn];
     [o_tableview registerForDraggedTypes:[NSArray arrayWithObjects:
             @"VLC media player module", nil]];
@@ -2273,6 +2273,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain];       \
     [o_scrollview setDocumentView: o_tableview];
 }
     [o_scrollview setAutoresizingMask:NSViewWidthSizable ];
+    [o_scrollview setAutohidesScrollers:YES];
     [self addSubview: o_scrollview];
 
 



More information about the vlc-commits mailing list