Revision: 29495
          http://sourceforge.net/p/bibdesk/svn/29495
Author:   hofman
Date:     2025-08-29 08:53:29 +0000 (Fri, 29 Aug 2025)
Log Message:
-----------
size height of text field for javascript text input to fit

Modified Paths:
--------------
    trunk/bibdesk/BDSKTextImportController.m
    trunk/bibdesk/BDSKWebView.m

Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m    2025-08-29 08:45:47 UTC (rev 
29494)
+++ trunk/bibdesk/BDSKTextImportController.m    2025-08-29 08:53:29 UTC (rev 
29495)
@@ -1016,7 +1016,9 @@
     [alert setInformativeText:prompt];
     [alert addButtonWithTitle:NSLocalizedString(@"OK", @"Button title")];
     [alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Button title")];
-    NSTextField *textField = [[NSTextField alloc] 
initWithFrame:NSMakeRect(0.0, 0.0, 300.0, 24.0)];
+    NSTextField *textField = [[NSTextField alloc] 
initWithFrame:NSMakeRect(0.0, 0.0, 300.0, 21.0)];
+    [textField sizeToFit];
+    [textField setFrameSize:NSMakeSize(300.0, NSHeight([textField frame]))];
     if (defaultText)
         [textField setStringValue:defaultText];
     [alert setAccessoryView:textField];

Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2025-08-29 08:45:47 UTC (rev 29494)
+++ trunk/bibdesk/BDSKWebView.m 2025-08-29 08:53:29 UTC (rev 29495)
@@ -688,7 +688,9 @@
     [alert setInformativeText:prompt];
     [alert addButtonWithTitle:NSLocalizedString(@"OK", @"Button title")];
     [alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Button title")];
-    NSTextField *textField = [[NSTextField alloc] 
initWithFrame:NSMakeRect(0.0, 0.0, 300.0, 24.0)];
+    NSTextField *textField = [[NSTextField alloc] 
initWithFrame:NSMakeRect(0.0, 0.0, 300.0, 21.0)];
+    [textField sizeToFit];
+    [textField setFrameSize:NSMakeSize(300.0, NSHeight([textField frame]))];
     if (defaultText)
         [textField setStringValue:defaultText];
     [alert setAccessoryView:textField];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to