Commit f607c70b authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

closes #3947
parent 4ff805ae
...@@ -2187,7 +2187,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -2187,7 +2187,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
} }
module_list_free( p_list ); 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.size.width = mainFrame.size.width - LEFTMARGIN - RIGHTMARGIN;
mainFrame.origin.x = LEFTMARGIN; mainFrame.origin.x = LEFTMARGIN;
mainFrame.origin.y = 0; mainFrame.origin.y = 0;
...@@ -2260,7 +2260,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -2260,7 +2260,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
initWithIdentifier:@"Module"]; initWithIdentifier:@"Module"];
[o_tableColumn setHeaderCell: o_headerCell]; [o_tableColumn setHeaderCell: o_headerCell];
[o_tableColumn setDataCell: o_dataCell]; [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 addTableColumn: o_tableColumn];
[o_tableview registerForDraggedTypes:[NSArray arrayWithObjects: [o_tableview registerForDraggedTypes:[NSArray arrayWithObjects:
@"VLC media player module", nil]]; @"VLC media player module", nil]];
...@@ -2273,6 +2273,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -2273,6 +2273,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
[o_scrollview setDocumentView: o_tableview]; [o_scrollview setDocumentView: o_tableview];
} }
[o_scrollview setAutoresizingMask:NSViewWidthSizable ]; [o_scrollview setAutoresizingMask:NSViewWidthSizable ];
[o_scrollview setAutohidesScrollers:YES];
[self addSubview: o_scrollview]; [self addSubview: o_scrollview];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment